Hello,
Inline.
Em 10-06-2015 13:03, khatri escreveu:
Hey sorry for my typing.
I have actually used the same format with % that is
No you have not, like others allready have told you.
You need %H:%M:%S not H:M:S.
strptime(dd,"%d/%m %H:%M:%S")
[1] "2015-01-21 11:11:11 GMT"
Hope this helps,
dd<-c("21/01 11:11:11")
strptime(dd,"%d/%m H:M:S")
[1] NA
it is giving NA.
--
View this message in context:
http://r.789695.n4.nabble.com/reading-as-date-tp4708434p4708441.html
Sent from the R help mailing list archive at Nabble.com.
______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.