> If you need plyr for other tasks you ought to use a different > class for your date data (or wait until plyr can deal with > POSIXlt objects).
How do you get POSIXlt objects into a data frame? > df <- data.frame(x = as.POSIXlt(as.Date(c("2008-01-01")))) > str(df) 'data.frame': 1 obs. of 1 variable: $ x: POSIXct, format: "2008-01-01" > df <- data.frame(x = I(as.POSIXlt(as.Date(c("2008-01-01"))))) > str(df) 'data.frame': 1 obs. of 1 variable: $ x: AsIs, format: "0" Hadley -- Assistant Professor / Dobelman Family Junior Chair Department of Statistics / Rice University http://had.co.nz/ ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.