[R] colSums

David Kane <David Kane a296180 at mica.fmr.com
Wed Jul 18 18:11:27 CEST 2001

As best I understand it, colSums (and associated functions) in S+ 6 are
optimized functions (calling special C routines) for doing simple matrix
math. For example, it seems like (in S+):

all.equal(colSums(m), apply(m, 2, sum))

should be TRUE for any matrix m. It also seems like colSums (and its brethren)
are very fast.

My question: Are there equivalents to colSums in R?


Dave Kane
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