Column and rows-wise mean absolute deviations | R Documentation |
Column and row-wise mean absolute deviations.
colMads(x,method = "median",na.rm=FALSE,parallel = FALSE, cores = 0)
rowMads(x,method = "median",na.rm=FALSE,parallel = FALSE, cores = 0)
Mad(x,method = "median",na.rm=FALSE)
x |
A vector, matrix or data.frame 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. |
cores |
Number of cores to use for parallelism. Valid only when argument parallel is set to TRUE. Default value is 0 and it means the maximum supported cores. |
The functions is written in C++ in order to be as fast as possible.
A vector with the column-wise mean absolute deviations.
Manos Papadakis
R implementation and documentation: Michail Tsagris <mtsagris@uoc.gr> and Manos Papadakis <papadakm95@gmail.com>.
colMedians, rowMedians, colVars, colmeans, colMeans (buit-in R function)
x <- matrix( rnorm(100 * 100), ncol = 100 )
a <- colMads(x)
x<-NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.