[R] How to use ddply

2014-01-13 Thread Amitabh Dugar
I have never used R-help to pose a question to the R-users community; is sending this Email the right way to do so? I am trying to use the ddply function in the plyr package to accomplish the following: I have a data frame of the type:      ticker monthend_n wgtdiff    ret 156      AA  

Re: [R] How to use ddply

2014-01-13 Thread arun
Hi, Try: ddply(test,.(monthend_n),mutate,quintiles=cut(wgtdiff,5)) A.K. On Monday, January 13, 2014 5:32 PM, Amitabh Dugar cleverc...@yahoo.com wrote: I have never used R-help to pose a question to the R-users community; is sending this Email the right way to do so? I am trying to use the

Re: [R] How to use ddply

2014-01-13 Thread David Winsemius
On Jan 13, 2014, at 1:29 PM, Amitabh Dugar wrote: I have never used R-help to pose a question to the R-users community; is sending this Email the right way to do so? I am trying to use the ddply function in the plyr package to accomplish the following: I have a data frame of the type: