Skip to contents

Handy window function

Usage

window_to(ts, ref)

Arguments

ts

A time series (`ts`) object.

ref

A time series (`ts`) or a vector containing both an initial time and a final time.

Value

A windowed time series (`ts`) object.