Learn R Programming

VanillaICE (version 1.34.0)

rowModes: Robust statistics for matrices

Description

Compute the column-wide or row-wise mode of numeric matrices

Compute the median absolute deviation (MAD) for the rows of a matrix

Usage

rowModes(x)
colModes(x)
rowMAD(x, ...)

Arguments

x
matrix
...
additional arguments to rowMedians

Value

numeric vector

See Also

mad

mad rowMedians

Examples

Run this code
X <- matrix(rnorm(100), 10, 10)
rowMAD(X)

Run the code above in your browser using DataLab