geoMean | R Documentation |
Calculates the geometric mean of a vector of values.
geoMean(x, nas = TRUE, zero.propagate = FALSE)
x |
vector of values from which geometric mean will be calculated |
nas |
TRUE/FALSE value indicating whether NAs should be removed |
zero.propagate |
TRUE/FALSE value indicating whether zeroes should be propagated |
vector geoMean
returns the geometric mean of the input values
geoMean(rnorm(100, 5, 5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.