har_mean.Rd
Compute the harmonic mean of a numeric vector, ignoring NA values.
NA
har_mean(x, na.rm = T)
A numeric vector.
Logical (default TRUE). Whether to remove NA values.
TRUE
A numeric scalar representing the harmonic mean.
Harmonic mean is useful when averaging rates or reciprocal quantities. It is defined as length(x) / sum(1/x).
length(x) / sum(1/x)