powered by
This function returns CV for values in each column (using speed optimized standard deviation). Note : NaN values get replaced by NA.
colCVs(dat, autoconvert = NULL, silent = FALSE, debug = FALSE, callFrom = NULL)
This function returns a (numeric) vector with CVs for each column of 'dat'
(numeric) matix
(NULL or character) allows converting simple vectors in matrix of 1 row (autoconvert="row")
(logical) suppress messages
(logical) additional messages for debugging
(character) allows easier tracking of messages produced
rowSums, rowCVs, rowGrpCV, colSds
rowSums
rowCVs
rowGrpCV
colSds
set.seed(2016); dat1 <- matrix(c(runif(200) +rep(1:10,20)),ncol=10) head(colCVs(dat1))
Run the code above in your browser using DataLab