Skip to contents

Handy window function with index

Usage

crop_to(ts, ind.range)

Arguments

ts

A time series (`ts`) object.

ind.range

A vector of length of 2. A first and second element refer to initial and final index, respectively.

Value

A cropped time series (`ts`) object.