rollit_example {RcppRoll} | R Documentation |
This presents the function signature for the output of
rollit
.
rollit_example(x, n, by.column, weights, normalize = FALSE)
x |
A vector/matrix of numeric type. |
n |
integer; the window / subset size to roll over. |
by.column |
boolean; if |
weights |
a vector of length |
normalize |
boolean; if |
This function does not return anything; it merely exists
as a skeleton to provide documentation for your own rollit
generated functions.
Elements in weights
equal to 0 are skipped, so that e.g.
setting weights = c(1,0,1,0,1)
would skip every 2nd and 4th
element in each length-5 window.