Skip to content
Prev 296022 / 398525 Next

a question about "by" and "ddply"

On May 29, 2012, at 6:32 PM, jacaranda tree wrote:

            
I would have imagined something along the lines of

lapply( split( df, df$group, function(x) cor.test(x[["age"]],  
x[["weight")] )

... but without an example it's only a guess.