[R] How to convert 3-digits hours
Wonjae Lee
wjlee2002 at naver.com
Fri Jul 22 01:06:07 CEST 2011
Hi, all
Here is what I tried to do.
> strptime('20110101 0900',"%Y%m%d %H%M")
[1] "2011-01-01 09:00:00"
> strptime('20110101 900',"%Y%m%d %H%M")
[1] NA
If I have a 3-digit hour like '900', please show me how to convert it to
09:00:00.
Thank you in advance.
Wonjae
--
View this message in context: http://r.789695.n4.nabble.com/How-to-convert-3-digits-hours-tp3685436p3685436.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list