powered by
This function calculates CVs for matrix with multiple groups of data, ie one CV for each group of data.
.rowGrpMeans(x, grp, na.replVa = NULL, na.rm = TRUE)
This function returns a matrix of mean values per row and group of replicates
numeric matrix where relplicates are organized into separate columns
(factor) defining which columns should be grouped (considered as replicates)
(numeric) value to replace NA values
NA
(logical) remove all NA values
rowGrpCV, rowCVs, arrayCV, replPlateCV
rowGrpCV
rowCVs
arrayCV
replPlateCV
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(.rowGrpMeans(dat1, grp1))
Run the code above in your browser using DataLab