.rowGrpSums | R Documentation |
This function calculates row-sums for matrix with multiple groups of data, with multiple groups of data, ie one sd for each group of data.
.rowGrpSums(x, grp, na.replVa = NULL, na.rm = TRUE)
x |
numeric matrix where relplicates are organized into separate columns |
grp |
(factor) defining which columns should be grouped (considered as replicates) |
na.replVa |
(numeric) value to replace |
na.rm |
(logical) remove all |
This function returns a matrix of row-sums for matrix with multiple groups of data
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(.rowGrpSums(dat1, grp1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.