| harmonic.mean {swfscMisc} | R Documentation |
Calculate the harmonic mean of a set of numbers.
harmonic.mean(x, na.rm = FALSE)
x |
a numeric vector. |
na.rm |
a logical value indicating whether NA values should be stripped before the computation proceeds. |
Eric Archer eric.archer@noaa.gov
x <- rlnorm(100) mean(x) median(x) harmonic.mean(x)