Skip to content
Back to formatted view

Raw Message

Message-ID: <15189.46383.196784.610354@gargle.gargle.HOWL>
Date: 2001-07-18T16:11:27Z
From: a296180 at mica.fmr.com (David Kane
Subject: colSums

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?

Thanks,

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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._