gmean: Geometric mean

View source: R/utils.R

gmeanR Documentation

Geometric mean

Description

Geometric mean

Usage

gmean(x)

Arguments

x

Numeric vector

Value

Numeric.

Author(s)

EDG

Examples

## Not run: 
x <- c(1, 3, 5)
mean(x)
gmean(x)
# same as, but a little faster than:
exp(mean(log(x)))

## End(Not run)

egenn/rtemis documentation built on June 14, 2025, 11:54 p.m.