logmean: Log mean

Description Usage Arguments Examples

View source: R/stats.R

Description

Finds the geometric mean by taking the mean of log values, then exponentiating

Usage

1
logmean(x, na.rm = TRUE)

Arguments

x

numeric or integer vector, non-negative. NAs are removed by default.

na.rm

remove NAs before computing mean

Examples

1
2
3
x <- rgamma(50, .1, 1)
mean(x)
logmean(x)

iamamutt/mejr documentation built on May 18, 2019, 1:27 a.m.