slide: slide window interval generator

View source: R/window.R

slideR Documentation

slide window interval generator

Description

slide generates a data.table with start, center, and end columns for a sliding window analysis.

Usage

slide(from, to, step = 1, before = 0, after = 0)

Arguments

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

Value

data.table with start, center, and end columns

Examples

slide(1, 10, step = 2, before = 1, after = 1)


cubar documentation built on April 3, 2025, 8:58 p.m.