Skip to contents

Computes the geometric mean

Usage

ds_gmean(data, x = NULL)

Arguments

data

A numeric vector or data.frame.

x

Column in data.

See also

Examples

# vector
ds_gmean(mtcars$mpg)
#> [1] 19.25006

# data.frame
ds_gmean(mtcars, mpg)
#> [1] 19.25006