I am trying to use the following code with R 2.13:
aa <- list() aa["test"] <- list(x1=5,x2=7)
I get:
> aa $test [1] 5
but I would like closer:
$test $x1 5 $x2 7
Can someone explain to me what I'm doing wrong? Thank!
OK, just found what I'm doing wrong!
aa[["test"]] <- list(x1=5,x2=7)
There is a trick!