gm_mean | R Documentation |
Calculates the geometric mean of a numeric vector
gm_mean(x, na.rm = FALSE, zero.propagate = TRUE)
x |
A numeric vector |
na.rm |
A flag specifying whether to remove missing values. |
zero.propagate |
A flag specifying whether to propagate zero values. |
A number of the geometric mean.
gm_mean(c(3, 66, 22, 17))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.