Description Usage Arguments Value Author(s) Examples
The harmonic mean is merely the reciprocal of the arithmetic mean of the reciprocals.
1 | 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
1 | harmonic_mean(1:10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.