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 Nov. 22, 2024, 4:12 a.m.