powered by
Extracts a subseries.
subseries(ts, start, end)
the input timeseries (0-based, left inclusive).
the interval start.
the interval end.
# NOT RUN { y = c(-1, -2, -1, 0, 2, 1, 1, 0) subseries(y, 0, 3) # }
Run the code above in your browser using DataLab