process.average: Compute replicate mean with restrictions

Description Usage Arguments Details Value See Also Examples

View source: R/primary_analysis.R

Description

process.average takes three replicates' data and combines vector-wise into means while allowing a single observation from each condition at most to be missing (flagged as NA).

Usage

1
process.average(vec.rep1, vec.rep2, vec.rep3)

Arguments

vec.rep1

numeric vector of first replicate Ct data

vec.rep2

numeric vector of second replicate Ct data

vec.rep3

numeric vector of third replicate Ct data

Details

There is an implicit restriction that appears to be applied manually to the real data example, where conditions with fewer than two replicates are blanked. Hopefully, this should cover that situation, while allowing single dropouts.

Value

numeric vector of vector-wise averages, with NA exclusion criteria applied

See Also

process.standard.deviation() for equivalent calculation with standard deviation.

Examples

1
vec.mean <- process.average(rnorm(10), rnorm(10), rnorm(10))

NCI-CGR/cgrtelomeres documentation built on Feb. 11, 2021, 12:12 p.m.