geomean: Calculate the geometric mean of a numeric vector

Description Usage Arguments Value

View source: R/geomean.R

Description

Calculate the geometric mean of a numeric vector, passing arguments on to mean.

Usage

1

Arguments

x

numeric vector. All elements must be positive, or an error is thrown. Geometric mean is defined only where all elements are positive.

...

optional arguments, passed to mean. na.rm is particularly useful.

Value

numeric, the value of the geometric mean


mjdufort/miscHelpers documentation built on Sept. 24, 2018, 7:09 p.m.