posixct - how do you convert to datetime in R -


i trying convert t field datetime in r. vector:

dput(t) "01-dec-15 04.50.14.000000000 pm" 

i tried this:

tt<-as.posixct(t, format="%d-%b-%y %i.%m.%s %p") 

when print out tt, na. ideas i'm doing wrong?

r> strptime("01-dec-15 04.50.14.000000000 pm",  +           "%d-%b-%y %i.%m.%s.000000000 %p") [1] "2015-12-01 16:50:14 cst" r>  

you using wrong qualifier year, , not sure am/pm toggle have gotten way.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -