R/ds-describe.R
ds_hmean.Rd
Computes the harmonic mean
ds_hmean(data, x = NULL)
A numeric vector or data.frame.
data.frame
Column in data.
data
ds_gmean mean
ds_gmean
mean
# vector ds_hmean(mtcars$mpg) #> [1] 18.44092 # data.frame ds_hmean(mtcars, mpg) #> [1] 18.44092