ra | R Documentation |
Calculate running average
ra(x, n = 7, s = 2, ...)
x |
vector to calculate the unning average on. |
n |
window size. Default = 7. |
s |
side. If s = 1, the values are based on past values only, if s = 2, the values are centered in the window. |
... |
further arguments passed to stats::filter |
a vector of running average values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.