On 2/24/10, Georg Ehret <georgeh...@gmail.com> wrote: > I do not understand why this does not work...: > Previously I ran into this and I am also curious why it doesn't work, but you can work around so: > x <- NULL > x$a <- 1:10 > x$b <- 11:20 > x $a [1] 1 2 3 4 5 6 7 8 9 10
$b [1] 11 12 13 14 15 16 17 18 19 20 > get("x")[ "a"] $a [1] 1 2 3 4 5 6 7 8 9 10 > get("x")[ "b"] $b [1] 11 12 13 14 15 16 17 18 19 20 > t <- "a" > get("x")[ t] $a [1] 1 2 3 4 5 6 7 8 9 10 Liviu ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.