[R] Functions on matrix row level

David Brahm brahm at alum.mit.edu
Wed Jan 30 17:11:35 CET 2002


Arndt, Ulrich, VF-VP <ulrich.arndt at vodafone.de> wrote:
> I like to do some calculations (like max, avg or min) on row level.

Prof Brian D Ripley <ripley at stats.ox.ac.uk> replied, in part:
> For average, rowMeans in R-devel is much faster still, if you need to save
> another 0.03 seconds ....

If you don't want to install a "devel" version of R and can't wait for 1.5.0,
try package "colSums" at:
  <http://cran.r-project.org/src/contrib/Devel/colSums_1.0.tar.gz>
which contains a function rowMeans() (but not rowMax or rowMin, which would be
nice additions).

   By the way, I will be submitting version 1.1 soon, which incorporates the
"2-pass" method in colVars and rowVars.
-- 
                              -- David Brahm (brahm at alum.mit.edu)
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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