gm: Calculate geometric mean

Description Usage Arguments Value Author(s) Examples

View source: R/statistics.R

Description

Calculate geometric mean

Usage

1
gm(x)

Arguments

x

Numeric vector.

Value

The geometric mean. NA is returned if there are any non-positive elements in x.

Author(s)

Justin Wilkins, justin.wilkins@occams.com

Examples

1
gm(c(0.5, 7, 8, 5))

pmxTools documentation built on Aug. 27, 2020, 1:10 a.m.