AverageReplicates: AverageReplicates

Description Usage Arguments Value Note Author(s) Examples

View source: R/aveytoolkit_AverageReplicates.R

Description

This function averages replicates in a matrix or data.frame

Usage

1
AverageReplicates(eSubSet, numRep)

Arguments

eSubSet

a matrix or data.frame of values with samples as columns

numRep

the number of replicates

Value

a data.frame of averaged values with column names coming from the first of each of the replicates with .avg appended

Note

Assumes that the replicates are all next to each other

Author(s)

Stefan Avey

Examples

1
2
mat <- matrix(rnorm(1000), ncol=10) ## 10 columns of random uniform numbers
avgMat <- AverageReplicates(mat, numRep=2) ## average adjacent pairs of columns

stefanavey/aveytoolkit documentation built on March 5, 2020, 12:49 a.m.