geomean: Geometric mean and harmonic mean functions

Description Usage Arguments Value Author(s) Examples

View source: R/geomean.R

Description

Geometric mean and harmonic mean functions

Usage

1
2

Arguments

x

numeric vector

Value

numeric scalar. For geomean, this is the geometric mean of x; for harmean, this is the harmonic mean of x.

Author(s)

Long Qu

Examples

1
2
geomean(10^(1:10)) #[1] 316227.8
harmean(10^(1:10)) #[1] 90

pi0 documentation built on July 9, 2017, 9:01 a.m.