View source: R/simple_moving_average.R
simple_moving_average | R Documentation |
Function to apply rolling mean to a vector.
simple_moving_average(x, width, align = "center", na.rm = TRUE)
x |
Numeric vector. The order of |
width |
Width of margin to apply function. |
align |
Should the index of the result be centered, left- or
right-aligned? Default is |
na.rm |
Should |
Stuart K. Grange
mean
, rollmean
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.