[R] Changing string to date
Christofer Bogaso
bogaso.christofer at gmail.com
Fri Aug 30 11:59:47 CEST 2013
Hello again,
I have a string which I need to put in some legitimate date format.
My string is: "MAY-14"
And output format would be "05/01/2014", this should be of Date class,
so that I can make some sensible calculation with it.
I have tried this without any success:
> as.Date("MAY-14", format = "%b-%y")
[1] NA
Can somebody help me how I can achieve that?
Thanks and regards,
More information about the R-help
mailing list