slide | R Documentation |
slide
generates a data.table with start, center, and end columns
for a sliding window analysis.
slide(from, to, step = 1, before = 0, after = 0)
from |
integer, the start of the sequence |
to |
integer, the end of the sequence |
step |
integer, the step size |
before |
integer, the number of values before the center of a window |
after |
integer, the number of values after the center of a window |
data.table with start, center, and end columns
slide(1, 10, step = 2, before = 1, after = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.