R/ym.R
ym_to_date.Rd
Year month string to date
ym_to_date(ym = c(200902, 201912), day = 1)
ym
day
dts <- ym_to_date(c(200902, 201912)) dts #> [1] "2009-02-01" "2019-12-01" class(dts) #> [1] "Date"