harmonic_mean {configural} | 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)