[R] reading as date
Jim Lemon
drjimlemon at gmail.com
Wed Jun 10 13:58:14 CEST 2015
Hi khatri,
strptime("6/20 21:56:32","%m/%d %H:%M:%S")
[1] "2015-06-20 21:56:32 AEST"
You forgot the % signs in the format for H:M:S
Jim
On Wed, Jun 10, 2015 at 8:20 PM, khatri <dheeraj.khatri at abzooba.com> wrote:
> My date column is in following format : "%m/%d H:M:S"
> There is not mention of year in the data.So how can I read this using
> strptime function.
> I have tried strptime(dates,"%m/%d H:M:S") but this is returning NA.
> Thanks
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/reading-as-date-tp4708431.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