View source: R/helper_functions.R
gm_mean | R Documentation |
Calculate the geometric mean of a vector of numbers
gm_mean(x, na.rm = TRUE)
x |
an R numerical object |
na.rm |
a logical value indicating whether NA values should be stripped before the computation proceeds. |
If all values in x are numeric class, a single numeric class value is returned.
x <- c(0:10, 50) gm_mean(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.