Learn R Programming

RandomWalker (version 0.1.0)

cmean: Cumulative Mean

Description

A function to return the cumulative mean of a vector.

Usage

cmean(.x)

Value

A numeric vector

Arguments

.x

A numeric vector

Author

Steven P. Sanderson II, MPH

Details

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

See Also

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

Examples

Run this code
x <- mtcars$mpg

cmean(x)

Run the code above in your browser using DataLab