tis
object.## S3 method for class 'tis':
start(x, \dots)
## S3 method for class 'tis':
end(x, \dots)
start(x) <- value
tis
objectstart
attributestart.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
,end
x <- tis(numeric(8), start = c(2001, 1), freq = 4)
start(x) ## --> ti object representing 2001Q1
start(as.ts(x)) ## --> c(2001, 1)
Run the code above in your browser using DataLab