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

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

Fred Hasselman