[R] List of zoo multivariate series
Research
risk2009 at ath.forthnet.gr
Wed Jun 30 11:09:33 CEST 2010
Hi,
I have a list which is basically a database of zoo multivariate objects:
x.Date <- as.Date("2003-02-01") + c(1:100) - 1
x <- zoo(rnorm(100), x.Date)
z <- zoo(rnorm(100), x.Date)
y <- zoo(rnorm(100), x.Date)
k <- zoo(rnorm(100), x.Date)
a<-merge(x,z)
b<-merge(y,k)
c<-merge(z,x,y)
test<-list(a=a, b=b, c=c)
Can I access the elements of the list in a for/next do loop?
for example something like:
for (i in 1:3)
{
x11()
plot(test[i])
}
So far I can only recover the zoo objects as test$a, test$b etc. etc...
Thanks,
Costas
More information about the R-help
mailing list