change statlink dates to R Date

changeDates(idx)

Arguments

date

a date character vector containing "m" or "q".

Details

change statlink dates to R Date.

Examples

changeDates(c("2012m1", "2012m2"))
#> Error in changeDates(c("2012m1", "2012m2")): could not find function "str_pad"
changeDates(c("2012q1", "2012q2", "2012q3", "2012q4"))
#> Error in changeDates(c("2012q1", "2012q2", "2012q3", "2012q4")): could not find function "str_pad"