window | R Documentation |
Extract the subset of a "timeDate"
object observed between two
time stamps.
## S3 method for class 'timeDate'
window(x, start , end, ...)
## S3 method for class 'timeDate'
cut(x, from , to, ...)
x |
an object of class |
start , end |
starting date, required, and end date, optional. If supplied
|
from , to |
starting date, required, and end date, optional. If supplied
|
... |
arguments passed to other methods. |
an object of class "timeDate"
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,
## timeCalendar
# monthly dates in current year
tS = timeCalendar()
tS
## window
# 2nd quarter window:
tS[4:6]
window(tS, tS[4], tS[6])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.