powered by
Extract a part from a "timeSeries" object.
"timeSeries"
# S3 method for timeSeries window(x, start, end, ...)
an object of class "timeSeries".
starting date and end date, end must be after start.
end
start
arguments passed to other methods.
window extracts the subset of the "timeSeries" object x observed between the times start and end.
window
x
head, outlier
head
outlier
## 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