HarmonicMean: HarmonicMean

Description Usage Arguments Value Author(s) References Examples

View source: R/MetricsforPackage.R

Description

Calculates the harmonic mean (the reciprocal of the arithmetic mean of the reciprocals of n values).

Usage

1

Arguments

x

Vector of n values whose harmonic mean is to be calculated.

Value

The harmonic mean of x.

Author(s)

John Ruscio

References

Ruscio et al. (2012)

Examples

1
HarmonicMean(c(1, 3, 9, 27, 81))

RImpact documentation built on May 2, 2019, 2:44 p.m.