View source: R/get_sliding_windows.R
get_sliding_windows | R Documentation |
Generate sliding windows
get_sliding_windows(from, to, n, size, intervals = TRUE)
from, to |
The bounds of the range to slide across |
n |
The number of bins in which to split the range |
size |
The size of the sliding window, in number of bins |
intervals |
See the "Value" section |
If intervals = TRUE
, a list of window ranges. Otherwise,
a list of two vectors: a vector of lower bounds and a vector of upper bounds
for each window.
get_sliding_windows(0, 10, 10, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.