ma | R Documentation |
ma
Get trailing moving average
ma(x, n)
x |
The vector to operate on. |
n |
The period of the moving average. |
Moving average of the vector x.
ma(7:21, 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.