Description Usage Arguments Value See Also Examples
Smooth a variable in a cast using a weighted moving average.
1 | smooth(x, k = 1, n = 1)
|
x |
vector of the variable of interest. It must have been recorded at approximately regular intervals (see |
k |
order of the window; the window size is 2k+1. |
n |
number of times to smooth the data. |
A vector containing the smoothed variable, containing as many elements as the original variable.
slide()
for the underlying implementation.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.