partition_window: Create a window of certain size at each index of the data.

Description Usage Arguments Value

Description

Create a window of certain size at each index of the data.

Usage

1
2
partition_window(idx, w_size, keys, data = NULL, partial = T,
  align = "center")

Arguments

idx

The index of the window key.

w_size

Size of window in points.

keys

The values used to create and identify the windows.

data

The data that will be filtered and divided into windows.

partial

Whether a partial window is allowed. At the begin and end of a dataset, some windows will be smaller than w_size. These windows will be removed is partial is FALSE.

align

Alignment of the window, relative to idx. "center" means: idx is in the middle between lower and upper bound. "left" means: idx is on the left, so idx == lower bound. "right" means: idx is on the right, so idx == upper bound.

Value

The subset of keys (or data) that are in the window


jjongbloets/slideR documentation built on May 19, 2019, 11:40 a.m.