smooth.ma | R Documentation |
Apply a moving average filter
smooth.ma(x, q)
x |
Time series data |
q |
Filter order |
The averaging function uses 2q+1
values.
Returns a vector the same length as x
.
y = smooth.ma(strikes,2) plotc(strikes,y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.