A fast and simple sliding window tool for R.
1 2 | RSlidingWindow(x, length.sw, by.sw = 1, method.sw = "mean",
keep.cut = TRUE)
|
x |
A numeric vector. |
length.sw |
An integer, length of the windows. |
by.sw |
An integer, steps between each window [default: 1]. |
method.sw |
A string, name of the method to use (see details) [default: "mean"]. |
keep.cut |
A boolean, indicating if the last window must be kept if it is uncompleted [default: TRUE]. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.