Description Usage Arguments Value Author(s) Examples
Function calculates moving average from a vector of numeric values.
1 | movingAverage(x, n, centered)
|
x |
a vector of numeric values for which moving average is computed |
n |
numeric value giving the frame length for moving average |
centered |
logic variable indicating if moving average should be centered (default = FALSE) |
comp1 |
function returns vector of moving average values |
Winston Chang
1 | movingAverage(1:20, n=3, centered=FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.