geoMean: Calculate geometric mean

View source: R/geoMean.R

geoMeanR Documentation

Calculate geometric mean

Description

Calculates the geometric mean of a vector of values.

Usage

geoMean(x, nas = TRUE, zero.propagate = FALSE)

Arguments

x

vector of values from which geometric mean will be calculated

nas

TRUE/FALSE value indicating whether NAs should be removed

zero.propagate

TRUE/FALSE value indicating whether zeroes should be propagated

Value

vector geoMean returns the geometric mean of the input values

Examples

geoMean(rnorm(100, 5, 5))

troyhill/SFNRC documentation built on Dec. 30, 2024, 4:32 p.m.