harmonic.mean: Harmonic Mean

Description Usage Arguments Author(s) Examples

Description

Calculate the harmonic mean of a set of numbers.

Usage

1
harmonic.mean(x, na.rm = FALSE)

Arguments

x

a numeric vector.

na.rm

a logical value indicating whether NA values should be stripped before the computation proceeds.

Author(s)

Eric Archer eric.archer@noaa.gov

Examples

1
2
3
4
x <- rlnorm(100)
mean(x)
median(x)
harmonic.mean(x)


Search within the swfscMisc package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.