I have the month in the usual format (2, 3, 4, and so on) but I wish to always have it in a 2 digit format so this would become (02, 03, 10, 11, 12).
Currently what I have as just;
themonth = month(Sys.Date())
I've tried putting as.numeric around this but out of ideas pretty quickly on this one