Skip to content
Prev 269495 / 398502 Next

ddply - how to transform df column "in place"

On Aug 23, 2011, at 6:16 PM, jjap wrote:

            
I'm pretty sure that when you do that you are sending dataframes to  
'x' that have been split apart on the basis of their daterep values.  
Why should there be a "plyr way" of converting types when there is no  
splitting of dataframes needed?

If you wanted nevertheless to do it the "plyr way":

d2 <- ddply(d, NULL , transform,
     daterep =  as.Date(strptime(d$daterep, format="%Y%m%d"))