Skip to content
Prev 307468 / 398506 Next

how to convert by lists in data.frames

You're right, I was in a hurry. This one works.

x <- rnorm(100)
a <- sample(letters[1:4], 100, T)
by.list <- by(x, a, summary)

do.call(rbind, as.list(by.list))


(I would also prefer aggregate.)

Rui Barradas


Em 09-10-2012 19:46, ilai escreveu: