Skip to content
Prev 296023 / 398513 Next

a question about "by" and "ddply"

On Wed, May 30, 2012 at 12:58 AM, David Winsemius
<dwinsemius at comcast.net> wrote:
lapply( split( df, df$group), function(x) cor.test(x[["age"]], x[["weight"]]) )

I'd imagine (I've been hunting down missing parentheses all night so
excuse the pedantry)

Repeating David's disclaimer "... but without an example it's only a guess."

Best,
M