| window {timeSeries} | R Documentation |
Extract a part from a "timeSeries" object.
## S4 method for signature 'timeSeries'
window(x, start, end, ...)
## S4 method for signature 'timeSeries'
cut(x, from, to, ...)
x |
an object of class |
from, to |
starting date and end date, |
start, end |
starting date and end date, |
... |
arguments passed to other methods. |
window Windows a piece from a "timeSeries" object,
cut is deprecated and will be removed in the near future.
## Load LPP Benchmark Returns -
x <- LPP2005REC[, 7:9]
range(time(x))
## Extract Data for January 2006 -
window(x, "2006-01-01", "2006-01-31")