Column and row-wise mean absolute deviations
Column and row-wise mean absolute deviations.
colMads(x,method = "median",na.rm=FALSE,parallel = FALSE) rowMads(x,method = "median",na.rm=FALSE,parallel = FALSE)
x |
A matrix with the data. |
method |
A character vector with values "median", for median absolute deviation or "mean", for mean absolute deviation. |
na.rm |
A logical value TRUE/FALSE to remove NAs. |
parallel |
A boolean value for parallel version. |
The functions is written in C++ in order to be as fast as possible.
A vector with the column-wise mean absolute deviations.
Michail Tsagris
R implementation and documentation: Michail Tsagris <mtsagris@yahoo.gr> and Manos Papadakis <papadakm95@gmail.com>.
colMedians, rowMedians, colVars, colmeans, colMeans (buit-in R function)
x <- matrix( rnorm(100 * 100), ncol = 100 ) system.time( a <- colMads(x) ) x<-NULL
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.