slide_window: Partition data using a sliding window

Description Usage Arguments Value

View source: R/slide.R

Description

Partition data using a sliding window

Usage

1
slide_window(data, key = NULL, w_size = 10, ...)

Arguments

data

A data.frame or list of data points

key

Name of column in data (if data is data.frame) that should be used as key for each window.

w_size

The size of the window to create

...

Arguments that should be passed to the create_window function

Value

A nested data.frame with all windows along with corresponding key.


jjongbloets/slideR documentation built on Feb. 14, 2018, 1:24 p.m.