I have a dataset that looks like this:
Month count 2009-01 12 2009-02 310 2009-03 2379 2009-04 234 2009-05 14 2009-08 1 2009-09 34 2009-10 2386 >
Using anytime package:
library(anytime) anydate("2009-01") # [1] "2009-01-01"