gm_mean | R Documentation |
Originally from Paul McMurdie, Ben Bolker, and Gregor on Stack Overflow: https://stackoverflow.com/questions/2602583/geometric-mean-is-there-a-built-in
gm_mean(x, na.rm = TRUE, zero.propagate = FALSE)
x |
vector of numeric values |
na.rm |
logical TRUE/FALSE remove NA values |
zero.propagate |
logical TRUE/FALSE. Allows the optional propagation of zeros. |
the geometric mean of the vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.