timeDate (version 3043.102)

window: Time Windows

Description

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

Usage

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

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

Value

returns an object of class timeDate.

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.

Examples

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

Run the code above in your browser using DataLab