geomean | R Documentation |
Calculates the geometric mean of a numeric vector (it excludes NA-s by default).
geomean(x, na.rm = TRUE)
x |
A numeric vector. |
na.rm |
Should NA values be removed before calculation? Defaults to TRUE. |
The geometric mean of the input vector.
geomean(1:5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.