ds_gmean: Geometric Mean

View source: R/ds-describe.R

ds_gmeanR Documentation

Geometric Mean

Description

Computes the geometric mean

Usage

ds_gmean(data, x = NULL)

Arguments

data

A numeric vector or data.frame.

x

Column in data.

See Also

ds_hmean mean

Examples

# vector
ds_gmean(mtcars$mpg)

# data.frame
ds_gmean(mtcars, mpg)


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