window | R Documentation |
Extract a part from a "timeSeries"
object.
## S3 method for class 'timeSeries'
window(x, start, end, ...)
x |
an object of class |
start , end |
starting date and end date, |
... |
arguments passed to other methods. |
window
extracts the subset of the "timeSeries"
object
x
observed between the times start
and end
.
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.