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 -

ios - MKMapView fails to load tiles with HTTP 410 error -

c# - How to utilize EF and LINQ to add filters and specify tables, columns, filters and order by dynamically -