tauWindow: Smart windowing function for time series

View source: R/tauWindow.R

tauWindowR Documentation

Smart windowing function for time series

Description

This function is a lot like window.zoo, but smarter because from can be a number, meaning that many data points.

Usage

tauWindow(x, from, to)

Arguments

x

An xts matrix

from

Either a Date, a number of obserations, or NULL (for all data since start)

to

Either a Date or NULL (for all data to end)

Details

If either from or to is NULL, then data is not chopped from the respective end.

Value

An xts matrix


pteetor/tutils documentation built on April 25, 2024, 9:14 a.m.