View source: R/vec-cumulative-functions.R
| cmean | R Documentation |
A function to return the cumulative mean of a vector.
cmean(.x)
.x |
A numeric vector |
A function to return the cumulative mean of a vector. It uses dplyr::cummean()
as the basis of the function.
A numeric vector
Steven P. Sanderson II, MPH
Other Vector Function:
cgmean(),
chmean(),
ckurtosis(),
cmedian(),
crange(),
csd(),
cskewness(),
cvar(),
euclidean_distance(),
kurtosis_vec(),
rw_range(),
skewness_vec()
x <- mtcars$mpg
cmean(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.