geomean: Geometric mean and harmonic mean functions

Description Usage Arguments Value Author(s) Examples

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

gitlongor/pi0 documentation built on May 17, 2019, 5:29 a.m.