Learn R Programming

NormqPCR (version 1.18.0)

geomMean: Geometric Mean

Description

Computation of the geometric mean.

Usage

geomMean(x, na.rm = TRUE)

Arguments

x
numeric vector of non-negative Reals
na.rm
a logical value indicating whether NA values should be stripped before the computation proceeds.

Value

geometric mean

Details

The computation of the geometric mean is done via prod(x)^(1/length(x)).

References

Perkins, JR, Dawes, JM, McMahon, SB, Bennett, DL, Orengo, C, Kohl, M (2012). ReadqPCR and NormqPCR: R packages for the reading, quality checking and normalisation of RT-qPCR quantification cycle (Cq) data. BMC Genomics, 13, 1:296.

Examples

Run this code
x <- rlnorm(100)
geomMean(x)

Run the code above in your browser using DataLab