Learn R Programming

jmotif (version 1.2.0)

subseries: Extracts a subseries.

Description

Extracts a subseries.

Usage

subseries(ts, start, end)

Arguments

ts

the input timeseries (0-based, left inclusive).

start

the interval start.

end

the interval end.

Examples

Run this code
y = c(-1, -2, -1, 0, 2, 1, 1, 0)
subseries(y, 0, 3)

Run the code above in your browser using DataLab