cgmean: Cumulative Geometric Mean

View source: R/vec-cumulative-functions.R

cgmeanR Documentation

Cumulative Geometric Mean

Description

A function to return the cumulative geometric mean of a vector.

Usage

cgmean(.x)

Arguments

.x

A numeric vector

Details

A function to return the cumulative geometric mean of a vector. exp(cummean(log(.x)))

Value

A numeric vector

Author(s)

Steven P. Sanderson II, MPH

See Also

Other Vector Function: chmean(), ckurtosis(), cmean(), cmedian(), crange(), csd(), cskewness(), cvar(), euclidean_distance(), kurtosis_vec(), rw_range(), skewness_vec()

Examples

x <- mtcars$mpg

cgmean(x)


RandomWalker documentation built on Oct. 23, 2024, 5:07 p.m.