geo.mean {TopKLists} | R Documentation |
Calculate the geometric mean
geo.mean(x, na.rm = TRUE)
x |
A vector of values |
na.rm |
Whether missing values should be automatically removed from calculation |
The geometric mean
Shili Lin <shili@stat.osu.edu>
Lin, S. (2010) Space oriented rank-based data integration. Statistical Applications in Genetics and Molecular Biology 9, Article 20.
set.seed(122)
vals <- sample(1:100, 10)
geo.mean(vals)