Wednesday, 14 August 2013

Convert ISOdatetime to numeric and back

Convert ISOdatetime to numeric and back

How to convert a numeric value, which stands for a ISOdatetime object back
to POSIXlt? I tried the following but I dont know how to get the initial
format of a.
a<-ISOdatetime(2013, 07, 22, 00, 00, 00, tz = "GMT")
b<-as.numeric(a)
class(a)<-c("POSIXct","POSIXt")

No comments:

Post a Comment