powered by
Extract a part from a "timeSeries" object.
"timeSeries"
# S4 method for timeSeries window(x, start, end, ...)# S4 method for timeSeries cut(x, from, to, ...)
# S4 method for timeSeries cut(x, from, to, ...)
an object of class "timeSeries".
starting date and end date, to must be after from.
to
from
starting date and end date, end must be after start.
end
start
arguments passed to other methods.
window Windows a piece from a "timeSeries" object,
window
cut is deprecated and will be removed in the near future.
cut
## Load LPP Benchmark Returns - x <- LPP2005REC[, 7:9] range(time(x)) ## Extract Data for January 2006 - window(x, "2006-01-01", "2006-01-31")
Run the code above in your browser using DataLab