Skip to content
Prev 257958 / 398506 Next

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

On 4/25/2011 11:55 AM, William Dunlap wrote:
Thanks, Bill. Somehow I missed that, despite the OP having it in his 
code; I even copied it into my testing window.  It was my error for not 
running it and noting it.
plyr uses rbind.fill primarily.  And it doesn't handle columns of 
POSIXlt based on testing that directly. (Although with only one 
argument, it just passes the data.frame back, which is why when there 
was just a single duplicate, it worked; that bypassed the code that 
couldn't handle POSIXlt's.)
If you do want to change classes, both Date and POSIXct are choices that 
will work with plyr.