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)


rsquaredacademy/descriptr documentation built on Nov. 13, 2024, 9:36 a.m.