Description Usage Arguments Value Source
Apply a moving average over a variable defaulting to a window of 5
1 | mav(x, n = 5)
|
x |
Continuous variable over which to apply the moving average |
n |
number of observation over which to take the moving average |
The moving (or rolling) average of x over the n window
http://druedin.com/2012/08/11/moving-averages-in-r/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.