ds_hmean: Harmonic Mean

View source: R/ds-describe.R

ds_hmeanR 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)


rsquaredacademy/descriptr documentation built on Nov. 13, 2024, 9:36 a.m.