I cannot find out how to build data structures as lists of data structures.

I want to do...
r-help@r-project.org

 d1 <- data.frame(x=1, y=2)
 d2 <- data.frame(x=1, y=3)
 d3 <- data.frame(x=21, y=3)


q1 <- data.frame(q=d1, n="a")
q2 <- data.frame(q=d2, n="a")
q3 <- data.frame(q=d3, n="a")


v <- vector() or list() or whatever

v[1] <- q1
v[2] <- q2
v[3] <- q3

then access d2$x as: v[2]$q$x

But I cannot get any thing like this.

I can find no examples in the manuals.


cheers
Worik

	[[alternative HTML version deleted]]

