window | R Documentation |
Extracts the subset of the object x
observed between the times start
and
end
(expressed in rata die).
## S4 method for signature 'TimeSeries'
window(x, start = NULL, end = NULL)
x |
A |
start |
A length-one |
end |
A length-one |
A TimeSeries
object.
N. Frerebeau
Other tools:
overlap()
,
span()
,
start()
,
time()
## Create 3 time-series of 100 observations
## Sampled every years starting from 1000 CE
(x <- series(matrix(rnorm(300), 100, 3), time = 1000:1099, calendar = CE()))
## Subset between 1025 and 1050 CE
(y <- window(x, start = 374009, end = 383140))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.