GeometricMean | R Documentation |
Calculate the geometric mean for a numeric vector.
GeometricMean(x, na.rm = TRUE, zero.rm = TRUE)
x |
Numeric vector. |
na.rm |
Should NAs be removed? (default=TRUE) |
zero.rm |
Should zeros be removed? (default=TRUE) |
The geometric mean as numeric scalar.
# NOTE: only intended for internal use and not part of the API
tricolore:::GeometricMean(0:100)
tricolore:::GeometricMean(0:100, zero.rm = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.