search for: chronobj

Displaying 1 result from an estimated 1 matches for "chronobj".

Did you mean: chrono
2008 Aug 01
1
chron objects: input/output
...method 1 > library(chron) > chron(substring(x,1,10),substring(x,12)) [1] (07/01/01 12:00:00) (07/17/01 15:00:00) ## method 2 (recently inspired by Gabor's post) > do.call(c,strapply(x,"(.*) (.*)",chron,backref=-2)) [1] (07/01/01 12:00:00) (07/17/01 15:00:00) ## method 3 > (chronObj <- as.chron(strptime(x,"%m/%d/%Y %T"))) [1] (07/01/01 12:00:00) (07/17/01 15:00:00) Could there be any gotchas with the third method (as.chron(strptime(...)))? The 'tz' attribute for POSIXlt objects are ignored, but I am not sure if there are any implications of the '$isd...