colSds {GMCM} | R Documentation |
Row and column standard deviations
Description
The rowSds
and colSds
respectively computes the
standard deviations of each rows and columns of the given matrix.
Usage
colSds(x)
rowSds(x)
Arguments
x |
A numeric matrix of size |
Value
colSds
returns a numeric vector of length m
.
rowSds
returns a numeric vector of length n
.
Author(s)
Anders Ellern Bilgrau <anders.ellern.bilgrau@gmail.com>
See Also
Examples
x <- matrix(rnorm(50), 10, 5)
GMCM:::colSds(x)
apply(x, 2, sd) # slower equivalent code
y <- matrix(rnorm(50), 10, 5)
GMCM:::rowSds(y)
[Package GMCM version 1.4 Index]