movingAve | R Documentation |
Calculates the moving / rolling average of a numeric vector.
movingAve(x, oneSide = 5)
x |
A numeric vector. |
oneSide |
The size of the moving window. Defaults to 5. |
A vector of the moving averages.
movingAve(1:5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.