[R] how to transform m/d/yyyy to yyyymmdd?

liujb liujulia7 at yahoo.com
Tue Jul 21 19:16:09 CEST 2009


Hello,

I have a set of data that has a Date column looks like this:
12/9/2007
12/16/2007
1/1/2008
1/3/2008
1/12/2008
etc.

I'd like the date to look something like the follow (so that I could sort by
date easily).
20071209
20071216
20080101
20080103
20080112

How to do it? Thank you very much
Julia
-- 
View this message in context: http://www.nabble.com/how-to-transform-m-d-yyyy-to-yyyymmdd--tp24591898p24591898.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list