Learn R Programming

ts2net (version 0.1.0)

ts_to_windows: Extract time windows from a time series

Description

This function is useful when constructing a network from a single time series. The returned list can be directly used to calculate the distance matrix D with ts_dist().

Usage

ts_to_windows(x, width, by = 1)

Arguments

x

time series

width

window length

by

Window step. This is the number of values in and out during the window rollover process.

Value

List of windows