[R] reading as date

Sarah Goslee sarah.goslee at gmail.com
Wed Jun 10 14:44:56 CEST 2015


No really, what Jim said: you need the % for H:M:S as well.

> dd<-c("21/01 11:11:11")
> strptime(dd,"%d/%m %H:%M:%S")
[1] "2015-01-21 11:11:11 EST"

On Wed, Jun 10, 2015 at 8:03 AM, khatri <dheeraj.khatri at abzooba.com> wrote:
> Hey sorry for my typing.
> I have actually used the same format with % that is
>
>
>> dd<-c("21/01 11:11:11")
>> strptime(dd,"%d/%m H:M:S")
> [1] NA
>
>
> it is giving NA.
>
>
>


-- 
Sarah Goslee
http://www.functionaldiversity.org



More information about the R-help mailing list