View source: R/statistics.misc.R
ma | R Documentation |
Calculate the moving average from a series of observations. NB: It assumes equally spaced observations
ma(x, n = 5)
x |
A vector containing equally spaced observations |
n |
The number of samples to include in the moving average. |
Thomas Bryce Kelly
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.