rowSds {matrixStats}R Documentation

Standard deviation estimates for each row (column) in a matrix

Description

Standard deviation estimates for each row (column) in a matrix.

Usage

 rowSds(x, ...)
 colSds(x, ...)
 rowMads(x, centers=NULL, constant=1.4826, ...)
 colMads(x, ...)

Arguments

x A numeric NxK matrix.
centers A optional numeric vector of length N (K) with centers. If NULL, they are calculated using rowMedians().
constant A scale factor. See mad for details.
... Additional arguments passed to rowVars() and rowMedians(), respectively.

Value

Returns a numeric vector of length N (K).

Author(s)

Henrik Bengtsson (http://www.braju.com/R/)

See Also

sd, mad and var. rowQuantiles().


[Package matrixStats version 0.1.6 Index]