[R] Dates in R (Year Month)
Mangalani Peter Makananisa
pmakananisa at sars.gov.za
Wed Jul 13 15:25:26 CEST 2016
Hi All,
I am trying to convert the vector below to dates please assist I have tried to use information on the links you sent, but it is not working.
X = c(201501, 201502, 201503, 201505, 201506, 201507, 201508, 201509, 201510, 201511, 201512, 201601, 201602, 201603, 201604, 201605, 201606)
library(chron, zoo)
Z = as.yearmon(X) # it is not working
please assist
Kind regards
Peter
Please Note: This email and its contents are subject to our email legal notice which can be viewed at http://www.sars.gov.za/Pages/Email-disclaimer.aspx
[[alternative HTML version deleted]]
More information about the R-help
mailing list