[R] pooling categories in a table

Strumila, John John.Strumila at team.telstra.com
Tue Apr 9 01:23:40 CEST 2002

beautiful, I didn't realise you could use "c(2,3)".  Its not in "help".  I
guess it's so obvious now...

John Strumila

    > apply(tab, c(2,3), sum)  # sums over first coordinate
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list