powered by
Calculate the harmonic mean of a set of numbers.
harmonic.mean(x, na.rm = FALSE)
a numeric vector.
a logical value indicating whether NA values should be stripped before the computation proceeds.
# NOT RUN { x <- rlnorm(100) mean(x) median(x) harmonic.mean(x) # }
Run the code above in your browser using DataLab