geo.mean: Calculate the geometric mean

View source: R/TopKSpace.R

geo.meanR Documentation

Calculate the geometric mean

Description

Calculate the geometric mean

Usage

geo.mean(x, na.rm = TRUE)

Arguments

x

A vector of values

na.rm

Whether missing values should be automatically removed from calculation

Value

The geometric mean

Author(s)

Shili Lin <shili@stat.osu.edu>

References

Lin, S. (2010) Space oriented rank-based data integration. Statistical Applications in Genetics and Molecular Biology 9, Article 20.

See Also

Borda

Examples

set.seed(122)
vals <- sample(1:100, 10)
geo.mean(vals)

TopKLists documentation built on Sept. 1, 2022, 5:10 p.m.