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
Post a Comment