Description Usage Arguments Value Note Author(s) Examples
View source: R/aveytoolkit_AverageReplicates.R
This function averages replicates in a matrix or data.frame
1 | AverageReplicates(eSubSet, numRep)
|
eSubSet |
a matrix or data.frame of values with samples as columns |
numRep |
the number of replicates |
a data.frame of averaged values with column names coming from the first of each of the replicates with .avg appended
Assumes that the replicates are all next to each other
Stefan Avey
1 2 | mat <- matrix(rnorm(1000), ncol=10) ## 10 columns of random uniform numbers
avgMat <- AverageReplicates(mat, numRep=2) ## average adjacent pairs of columns
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.