Learn R Programming

wrMisc (version 1.15.3.1)

.rowGrpCV: row group CV (main)

Description

This function calculates CVs for matrix with multiple groups of data, ie one CV for each group of data.

Usage

.rowGrpCV(x, grp, means)

Value

This function returns a matrix of CV values

Arguments

x

numeric matrix where relplicates are organized into separate columns

grp

(factor) defining which columns should be grouped (considered as replicates)

means

(numeric) alternative values instead of means by .rowGrpMeans()

See Also

rowGrpCV, rowCVs, arrayCV, replPlateCV

Examples

Run this code
set.seed(2016); dat1 <- matrix(c(runif(200)+rep(1:10,20)),ncol=10)
grp1 <- gl(4,3,labels=LETTERS[1:4])[2:11]
head(.rowGrpCV(dat1, grp1,  .rowGrpMeans(dat1, grp1)))

Run the code above in your browser using DataLab