rowMads {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
rowMads(x, rows = NULL, cols = NULL, center = NULL, constant = 1.4826,
na.rm = FALSE, dim. = dim(x), ..., useNames = TRUE)
colMads(x, rows = NULL, cols = NULL, center = NULL, constant = 1.4826,
na.rm = FALSE, dim. = dim(x), ..., useNames = TRUE)
rowSds(x, rows = NULL, cols = NULL, na.rm = FALSE, refine = TRUE,
center = NULL, dim. = dim(x), ..., useNames = TRUE)
colSds(x, rows = NULL, cols = NULL, na.rm = FALSE, refine = TRUE,
center = NULL, dim. = dim(x), ..., useNames = TRUE)
Arguments
x |
|
rows |
A |
cols |
A |
center |
(optional) The center, defaults to the row means for the SD estimators and row medians for the MAD estimators. |
constant |
A scale factor. See |
na.rm |
If |
dim. |
An |
... |
Additional arguments passed to |
useNames |
If |
refine |
If |
Value
Returns a numeric
vector
of
length N (K).
Author(s)
Henrik Bengtsson