Standard deviation estimates for each row (column) in a matrix.
rowMads(x, rows = NULL, cols = NULL, center = NULL, constant = 1.4826,
na.rm = FALSE, dim. = dim(x), ..., useNames = NA)colMads(x, rows = NULL, cols = NULL, center = NULL, constant = 1.4826,
na.rm = FALSE, dim. = dim(x), ..., useNames = NA)
rowSds(x, rows = NULL, cols = NULL, na.rm = FALSE, center = NULL,
dim. = dim(x), ..., useNames = NA)
colSds(x, rows = NULL, cols = NULL, na.rm = FALSE, center = NULL,
dim. = dim(x), ..., useNames = NA)
Returns a numeric
vector
of
length N (K).
A vector
indicating subset of rows to
operate over. If NULL
, no subsetting is done.
A vector
indicating subset of columns to
operate over. If NULL
, no subsetting is done.
(optional) The center, defaults to the row means for the SD estimators and row medians for the MAD estimators.
A scale factor. See mad
for details.
If TRUE
, missing values are
excluded.
An integer
vector
of
length two specifying the dimension of x
, also when not a
matrix
. Comment: The reason for this argument
being named with a period at the end is purely technical (we get a run-time
error if we try to name it dim
).
Additional arguments passed to rowMeans()
and
rowSums()
.
If NA
, the default behavior of the
function about naming support is remained. If FALSE
,
no naming support is done. Else if TRUE
, names
attributes of result are set.
Henrik Bengtsson