| rollapply | R Documentation |
Rolling window apply
rollapply(
x,
width,
FUN,
...,
align = c("right", "left", "center"),
fill = NA,
partial = FALSE
)
x |
An atomic vector. |
width |
Target width, in characters or rolling-window size depending on the function. |
FUN |
Function applied to each rolling window. |
... |
Additional arguments (unused, or passed through depending on the function). |
align |
Alignment of the rolling window relative to each position. |
fill |
Value used for positions where no window/result is available. |
partial |
Allow partial windows at the boundaries. |
A vector with one result per window.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.