Learn R Programming

caroline (version 0.7.6)

geomean: Calculate the Geometric Mean

Description

A trivial one-line function for exp(mean(log()))

Usage

geomean(x)

Arguments

x

a vector of numeric values

Value

the geometric mean (a scalar value)

See Also

geometric.mean

Examples

Run this code
# NOT RUN {
geomean(rnorm(20,5))

# }

Run the code above in your browser using DataLab