cmean: Cumulative Mean

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

cmeanR Documentation

Cumulative Mean

Description

A function to return the cumulative mean of a vector.

Usage

cmean(.x)

Arguments

.x

A numeric vector

Details

A function to return the cumulative mean of a vector. It uses dplyr::cummean() as the basis of the function.

Value

A numeric vector

Author(s)

Steven P. Sanderson II, MPH

See Also

Other Vector Function: bootstrap_p_vec(), bootstrap_q_vec(), cgmean(), chmean(), ckurtosis(), cmedian(), csd(), cskewness(), cvar(), tidy_kurtosis_vec(), tidy_scale_zero_one_vec(), tidy_skewness_vec()

Examples

x <- mtcars$mpg

cmean(x)


TidyDensity documentation built on Nov. 2, 2023, 5:38 p.m.