[R] Summary of colSums

David Kane <David Kane a296180 at mica.fmr.com
Thu Jul 19 14:45:05 CEST 2001


Thanks to Andy Liaw, Douglas Bates and Marcel Wolters for spending time on my
problem. In summary, there does not seem to be a built in colSums in R as there
is in S+ 6.0. However, Doug Bates was kind enough to send me a simple math
utilities package that has a version of colSums in C. The package installed
without a hitch and produced similar performance to the S+ colSums function (in
my simple tests). Both Andy Liaw and Marcel Wolters pointed out that the built
in matrix operators (like %*%) are likely to be faster than apply, especially
if one has compiled R with the Atlas library (which I have not yet done).

Thanks again to all,

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