ts_slice: Slice a Matrix

ts_sliceR Documentation

Slice a Matrix

Description

Slices rows of a matrix into a list of matrices representing epochs of length epochSz.

Usage

ts_slice(y, epochSz = 4, overlap = NA, removeUnequal = FALSE)

Arguments

y

A matrix with timeseries as columns

epochSz

Epoch size

removeUnequal

Do not return bins whose length is not equal to epochSz (default = FALSE)

Value

A list with epochs

Author(s)

Fred Hasselman

See Also

Other Time series operations: ts_center(), ts_changeindex(), ts_checkfix(), ts_detrend(), ts_diff(), ts_discrete(), ts_duration(), ts_embed(), ts_integrate(), ts_levels(), ts_peaks(), ts_permtest_block(), ts_permtest_transmat(), ts_rasterize(), ts_sd(), ts_slopes(), ts_standardise(), ts_sumorder(), ts_symbolic(), ts_trimfill(), ts_windower()


FredHasselman/casnet documentation built on Jan. 6, 2025, 3:18 a.m.