ds_hmean {descriptr}R Documentation

Harmonic Mean

Description

Computes the harmonic mean

Usage

ds_hmean(x, data = NULL, na.rm = FALSE, ...)

Arguments

x

a numeric vector.

data

a data.frame or tibble.

na.rm

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

...

further arguments passed to or from other methods

See Also

ds_gmean mean

Examples

ds_hmean(mtcars$mpg)
ds_hmean(mpg, mtcars)

[Package descriptr version 0.5.2 Index]