[R] reading as date
Rui Barradas
ruipbarradas at sapo.pt
Wed Jun 10 15:33:42 CEST 2015
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 at 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.
>
More information about the R-help
mailing list