Skip to content
Prev 5501 / 398525 Next

:?alternative to loop

Many people suggested apply(). It works for many functions.
But if you just need sum(), take a look at rowsum(), it should be 
faster.

Note also, the function rowsum() in Splus2000 is not as fast as in R.

Mai Zhou
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Message-ID: <200005031546.LAA16284@t3.mscf.uky.edu>
In-Reply-To: <391003F9.B4C44DB@univ-orleans.fr> from "nicolas baurin" at May 03, 2000 12:48:26 PM