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