stats-window: Time windows

windowR Documentation

Time windows

Description

Extract the subset of a "timeDate" object observed between two time stamps.

Usage

## S3 method for class 'timeDate'
window(x, start , end, ...)

## S3 method for class 'timeDate'
cut(x, from , to, ...)

Arguments

x

an object of class "timeDate".

start, end

starting date, required, and end date, optional. If supplied to must be after from.

from, to

starting date, required, and end date, optional. If supplied to must be after from.

...

arguments passed to other methods.

Value

an object of class "timeDate"

Note

The method for cut has been discouraged in the sources for a long time (with a recommendation to use window). It was officially deprecated in v4032.109 and will be removed or replaced by a method that is consistent with the methods for cut in base R,

Examples

  
## timeCalendar
# monthly dates in current year
tS = timeCalendar()
tS 
   
## window
# 2nd quarter window:
tS[4:6]
window(tS, tS[4], tS[6])

timeDate documentation built on Sept. 22, 2024, 5:07 p.m.