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