gmean: Geometric mean

View source: R/gmean.R

gmeanR Documentation

Geometric mean

Description

Geometric mean

Usage

gmean(x)

Arguments

x

Numeric vector

Author(s)

E.D. Gennatas

Examples

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

egenn/rtemis documentation built on May 4, 2024, 7:40 p.m.