runavg | R Documentation |
Create a running average of past values for a historical time series.
runavg(z, k, na.rm = TRUE)
z |
A time series or vector of values |
k |
Number of previous terms to average |
na.rm |
Remove the inital NA values (default is TRUE) |
A time series (or vector) of the averages taken k at a time with the first value at time k+1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.