Learn R Programming

Rfast (version 1.3)

Column-wise mean absolute deviations: Colum-wise mean absolute deviations

Description

Colum-wise mean absolute deviations.

Usage

colMads(x)

Arguments

x
A matrix with the data.

Value

A vector with the column-wise mean absolute deviations.

Details

The functions is written in C++ in order to be as fast as possible.

See Also

colMedians, colVars, colMeans (buit-in R function)

Examples

Run this code
x <- matrix( rnorm(100 * 1000), ncol = 1000 )
system.time( a <- colMads(x) )

Run the code above in your browser using DataLab