geometric_mean | R Documentation |
Calculate geometric mean
geometric_mean(.x)
.x |
A numeric to take the geometric mean of |
A single numeric value
The geometric mean is given by:
\left(\prod_{i=1}^n x_i \right)^\frac{1}{n}
but implemented as:
\frac{1}{n}\exp{\sum_{i=1}^n\log(x_i)}
NA
s are removed before calculation
beadplexr:::geometric_mean(runif(10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.