Skip to contents

Handy window function

Usage

window_to(x, ref)

Arguments

x

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.