I think this is what you want. You need to look at the help file for
?'[' and ?'[['. Also understand the differences between a data.frame
and a list. in the case of defining qn you need to use a list and not
a data.frame because here is what happens with a data.frame:
> q1 <- data.frame(q=d1, n
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 <-
2 matches
Mail list logo