Starting and ending time indexes
Return the start or end time index for a tis
object.
## S3 method for class 'tis' start(x, ...) ## S3 method for class 'tis' end(x, ...) start(x) <- value
x |
a |
value |
desired |
... |
ignored |
start.tis
returns the start
attribute of x
, while
end.tis
returns start(x) + nobs(x) - 1
.
start(x) <- value
returns the series x
shifted such that
it's starting time is value
.
start
and end
are generic functions with default methods
that assume x
has (or can be given) a tsp
attribute.
The default methods return a two vector as c(year, period), while the
methods described here return infinitely more useful ti
objects.
x <- tis(numeric(8), start = c(2001, 1), freq = 4) start(x) ## --> ti object representing 2001Q1 start(as.ts(x)) ## --> c(2001, 1)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.