Skip to content
Prev 257970 / 398506 Next

Problem with ddply in the plyr-package: surprising output of a date-column

On 2011-04-25 13:07, Hadley Wickham wrote:
To mimic the OP's code

   df <- data.frame(x = "2008-01-01")
   df$x <- as.POSIXlt(df$x, "%Y-%m-%d")
   str(df)
   #'data.frame':   1 obs. of  1 variable:
   # $ x: POSIXlt, format: "2008-01-01"

Peter Ehlers