ds_gmean {descriptr}R Documentation

Geometric Mean

Description

Computes the geometric mean

Usage

ds_gmean(x, data = NULL, na.rm = FALSE, ...)

Arguments

x

a numeric vector

data

a data.frame or tibble

na.rm

a logical value indicating whether NA values should be stripped before the computation proceeds.

...

further arguments passed to or from other methods

See Also

ds_hmean mean

Examples

ds_gmean(mtcars$mpg)
ds_gmean(mpg, mtcars)

[Package descriptr version 0.5.2 Index]