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)


descriptr documentation built on April 3, 2025, 8:46 p.m.