gm_mean | R Documentation |
Calculates the geometric mean of a numeric vector
gm_mean(x, na.rm = TRUE)
x |
A numeric vector |
na.rm |
Logical (default TRUE). Should NA values be ignored in this calculation? If FALSE, a vector containing NA values will return a geometric mean of NA. |
The geometric mean
gm_mean(c(1, 3, 5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.