gmean | R Documentation |
Geometric mean
gmean(x)
x |
Numeric vector |
E.D. Gennatas
x <- c(1, 3, 5)
mean(x)
gmean(x)
# same as, but a little faster than:
exp(mean(log(x)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.