rowCVs | R Documentation |
This function returns CV for values in each row (using speed optimized standard deviation). Note : NaN values get replaced by NA.
rowCVs(dat, autoconvert = NULL, silent = FALSE, debug = FALSE, callFrom = NULL)
dat |
(numeric) matix |
autoconvert |
(NULL or character) allows converting simple vectors in matrix of 1 row (autoconvert="row") |
silent |
(logical) suppress messages |
debug |
(logical) additional messages for debugging |
callFrom |
(character) allows easier tracking of messages produced |
This function returns a (numeric) vector with CVs for each row of 'dat'
colSums
, rowSds
, rowGrpCV
, colCVs
set.seed(2016); dat1 <- matrix(c(runif(200) +rep(1:10,20)), ncol=10)
head(rowCVs(dat1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.