R/dates.R
yyyymm_expand.Rd
yyyymm_expand
yyyymm_expand(x)
numeric in yyyymm format
dates <- c("200812", "201201") sapply(dates, yyyymm_expand) #> 200812 201201 #> "2008-12" "2012-01"