[R] compute variance of every column in a matrix without a loop
Uwe Ligges
ligges at statistik.uni-dortmund.de
Sun Mar 17 12:45:29 CET 2002
Francisco J Molina wrote:
>
> Is it possible to compute the variance of every column in a matrix
> without a loop?
What about
apply(X, 2, var)
Uwe Ligges
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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