Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

stats-window

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

from, to

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

start, end

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

x

an object of class timeDate.

...

arguments passed to other methods.

Value

returns an object of class timeDate.

Examples

## timeCalendar - 
   # Monthly Dates in Current Year:
   tS = timeCalendar()
   tS 
   
## window -
   # 2nd Quarter Window:
   tS[4:6]
   window(tS, tS[4], tS[6])

timeDate

Rmetrics - Chronological and Calendar Objects

v3043.102
GPL (>= 2)
Authors
Diethelm Wuertz [aut], Tobias Setz [cre], Yohan Chalabi [ctb], Martin Maechler [ctb], Joe W. Byers [ctb]
Initial release
2018-02-21

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.