Re: [R] chron objects: input/output

2008-08-01 Thread Gabor Grothendieck
Just recently the ability to handle POSIXt style formats in as.chron was added: > x <- c("07/01/2001 12:00:00","07/17/2001 15:00:00") > y <- as.chron(x, "%m/%d/%Y %H:%M:%S") > y [1] (07/01/01 12:00:00) (07/17/01 15:00:00) > # Here is a workaround > format(as.POSIXct(y), tz = "GMT", format = "%m

[R] chron objects: input/output

2008-08-01 Thread Stephen Tucker
Hi list, I have some questions regarding 1) conversion of date + time characters to chron 2) formatting chron object printing Regarding (1), Gabor's Rnews 2004 4/1 article has been indispensible, but I often work with files where dates and times are contained in a single field. In this case, I wo