Description Usage Arguments Value Examples
Computes the value of a summary function over a rolling window of nearby values in the vector.
1 |
fun |
Bare, unquoted function to be applied over the window |
x |
Vector to which |
n |
Size of the window |
default |
Default value used for non-existent values on either end of
|
forward |
A logical value indicating whether the window should go forwards from each value or backwards (the default) |
fun_value |
A generalized vector to serve as a template for the return
value from |
A vector with the same length as x
.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.