geomean: Geometric mean

View source: R/geomean.R

geomeanR Documentation

Geometric mean

Description

Calculate the geometric mean.

Usage

geomean(x, na.rm = c(FALSE, TRUE), ...)

Arguments

x

input data (will be considered as a vector).

na.rm

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

...

further arguments passed to or from other methods.

Value

The geometirc mean of the values in x.

Author(s)

Nikolaos Kourentzes, nikolaos@kourentzes.com.

Examples

geomean(c(0.5,1,1.5))


tsutils documentation built on Nov. 15, 2023, 1:08 a.m.