View source: R/func.dataproc.R
MA.n | R Documentation |
function to calculate moving average
MA.n(x, periods = 5)
x |
A data frame contain the variable for calculation |
periods |
An odd number of the periods in MA. The default is 5, i.e., 2 lags and 2 leads |
A data frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.