ts_to_windows: Extract time windows from a time series

View source: R/utils.R

ts_to_windowsR Documentation

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


ts2net documentation built on June 9, 2022, 9:06 a.m.