Learn R Programming

RImpact (version 1.0)

GeometricMean: GeometricMean

Description

Calculates the geometric mean (the nth root of the product of n values).

Usage

GeometricMean(x)

Arguments

x

Vector of n values whose geometric mean is to be calculated.

Value

The geometric mean of x.

References

Ruscio et al. (2012)

Examples

Run this code
# NOT RUN {
GeometricMean(c(1, 3, 9, 27, 81))
# }

Run the code above in your browser using DataLab