I am trying the following code, with R 2.13:
aa <- list()
aa["test"] <- list(x1=5,x2=7)
What I get is:
> aa
$test
[1] 5
but I would like something closer to:
$test
$x1 5
$x2 7
Can someone explain me what I am doing wrong?
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
OK, just found what I was doing wrong!
Does the trick!