Skip to content

Time Series Row Label

2 messages · dreadgazebo, Gabor Grothendieck

#
Simple question...

I know that when referencing data in a multivariate time series matrix, I
can use the variable name instead of the column number (such as
budget.ts[4,"incometax"]). Is there a way I can use the time unit (say, the
year in an annual time series) instead of the row number?
#
On Fri, Dec 10, 2010 at 3:16 PM, dreadgazebo <ernie.tedeschi at gmail.com> wrote:
You can use window(), e.g.

tt <- ts(1:4, start = 2000)
window(tt, start = 2001, end = 2002)