powered by
rowCVs returns CV for values in each row (using speed optimized standard deviation). Note : NaN values get replaced by NA.
rowCVs
rowCVs(dat, autoconvert = NULL)
(numeric) matix
(NULL or character) allows converting simple vectors in matrix of 1 row (autoconvert="row")
(numeric) vector with CVs for each row of 'dat'
colSums, rowGrpCV, rowSds
colSums
rowGrpCV
rowSds
# NOT RUN { set.seed(2016); dat1 <- matrix(c(runif(200)+rep(1:10,20)),ncol=10) head(rowCVs(dat1)) # }
Run the code above in your browser using DataLab