harmonic_mean | R Documentation |
The harmonic mean is merely the reciprocal of the arithmetic mean of the reciprocals.
harmonic_mean(x, na.rm = TRUE, zero = TRUE)
x |
A vector, matrix, or data.frame |
na.rm |
Logical. If |
zero |
Logical, If |
The harmonic mean of x
Adapted from psych::harmonic.mean()
by William Revelle
harmonic_mean(1:10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.