Time windows for Time Indexed Series
window.tis extracts the subset of the object x observed
between the times start and end.
## S3 method for class 'tis' window(x, start = NULL, end = NULL, extend = FALSE, noWarn = FALSE, ...)
x |
a |
start |
the start time of the period of interest. |
end |
the end time of the period of interest. |
extend |
logical. If |
noWarn |
logical. If |
... |
other arguments to this function are ignored. |
The start and end times can be ti objects, or anything that
ti(z, tif = tif, freq = frequency), can turn into a ti object.
A tis object that starts and ends at the given times.
The replacement method window<-.tis has not been implemented.
Use the subscript operator with a ti argument to replace values
of a tis object.
z <- tis(1:24, start = c(2001,1), freq = 12) z2 <- window(z, start = 19991231, extend = TRUE) ## z2 extends back with NA's window(z, end = end(z) - 3)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.