colVars | R Documentation |
Quick and dirty function for column variances and standard deviations.
colVars(x, na.rm = FALSE) colStdevs(x, ...)
x |
data frame, matrix, or vector. These versions do not support higher-dimensional arrays. |
na.rm |
logical. Should missing values (including |
... |
other arguments passed to |
A numeric or complex array of suitable size, or a vector if the result is
one-dimensional. The dimnames
(or names
for a vector
result) are taken from the original array.
There are better versions of these functions in the aggregate package
https://www.timhesterberg.net/r-packages.
Tim Hesterberg timhesterberg@gmail.com,
https://www.timhesterberg.net/bootstrap-and-resampling
colSums
, var
, sd
.
x <- matrix(rnorm(12), 4) colVars(x) colStdevs(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.