colVars

0th

Percentile

Column variances and standard deviations for matrices.

Quick and dirty function for column variances and standard deviations.

Keywords
arith, algebra
Usage
colVars(x, na.rm = FALSE) colStdevs(x, ...)
Arguments
x
data frame, matrix, or vector. These versions do not support higher-dimensional arrays.
na.rm
logical. Should missing values (including NaN) be omitted from the calculations?
...
other arguments passed to colVars.
Value

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.

Note

There are better versions of these functions in the aggregate package http://www.timhesterberg.net/r-packages.

See Also

colSums, var, sd.

Aliases
  • colVars
  • colStdevs
Examples
x <- matrix(rnorm(12), 4)
colVars(x)
colStdevs(x)
Documentation reproduced from package resample, version 0.4, License: BSD_3_clause + file LICENSE

Community examples

Looks like there are no examples yet.