Learn R Programming

descriptr (version 0.1.0)

hmean: Harmonic Mean

Description

Compute the harmonic mean

Usage

hmean(x, ...)

Arguments

x

a numeric vector containing the values whose harmonic mean is to be computed

...

further arguments passed to or from other methods #' @details Any NA values are stripped from x before computation takes place.

Value

Returns the harmonic mean of x

See Also

gmean mean

Examples

Run this code
hmean(mtcars$mpg)

Run the code above in your browser using DataLab