ds_hmean {descriptr}R Documentation

Harmonic Mean

Description

Computes the harmonic mean

Usage

ds_hmean(data, x = NULL)

Arguments

data

A numeric vector or data.frame.

x

Column in data.

See Also

ds_gmean mean

Examples

# vector
ds_hmean(mtcars$mpg)

# data.frame
ds_hmean(mtcars, mpg)


[Package descriptr version 0.6.0 Index]