Description Usage Arguments Value
moving() returns a vector of averages obtained from the n elements of x preceding and including the element at each respective index
1 | moving(x, n = 5)
|
x |
a numerical vector to calculate the moving average |
n |
the number of elements to include in the moving average |
the vector of the moving average.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.