Learn R Programming

runner (version 0.2.1)

window_run: List of running windows

Description

Creates list of windows

Usage

window_run(x, k = 0L, idx = 1L)

Arguments

x

Vector of any type

k

integer vector which specifies window length

idx

an optional integer vector containing index of observations.

Examples

Run this code
# NOT RUN {
window_run(1:10, k=3)
window_run(letters[1:10],k=c(1,2,2,4,5,5,5,5,5,5))
# }

Run the code above in your browser using DataLab