Skip to content
Prev 172844 / 398502 Next

Summary grouped by factor

soeren.vogel at eawag.ch wrote:
Maybe this could be a solution:

t1 <- tapply(v, k, summary)
t2 <- sapply(t1, cbind)
rownames(t2) <- names(t1[[1]])
t2

Ciao,
domenico