rowCVs: rowCVs

View source: R/rowCVs.R

rowCVsR Documentation

rowCVs

Description

This function returns CV for values in each row (using speed optimized standard deviation). Note : NaN values get replaced by NA.

Usage

rowCVs(dat, autoconvert = NULL)

Arguments

dat

(numeric) matix

autoconvert

(NULL or character) allows converting simple vectors in matrix of 1 row (autoconvert="row")

Value

This function returns a (numeric) vector with CVs for each row of 'dat'

See Also

colSums, rowGrpCV, rowSds

Examples

set.seed(2016); dat1 <- matrix(c(runif(200) +rep(1:10,20)),ncol=10)
head(rowCVs(dat1))

wrMisc documentation built on May 29, 2024, 5:44 a.m.