gmean: Geometric Mean value

Description Usage Arguments Value

View source: R/00-stats.R

Description

Compute the sample geometric mean.

Usage

1
gmean(x, na.rm = getOption("transx.na.rm"))

Arguments

x

[univariate vector]

Univariate vector, numeric or ts object with only one dimension.

na.rm

[logical(1): getOption("transx.na.rm")]

A value indicating whether NA values should be stripped before the computation proceeds.

Value

Returns a vector with the same class and attributes as the input vector.


kvasilopoulos/transx documentation built on Jan. 26, 2021, 6:14 p.m.