[R] reading as date

K. Elo maillists at nic.fi
Wed Jun 10 13:54:55 CEST 2015


Hi!

10.06.2015, 13:20, khatri 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

How about:

strptime(dates,"%m/%d %H:%M:%S")

Some data could also be helpful for testing...

HTH,
Kimmo



More information about the R-help mailing list