Dear Madam/Sir,

I  am   trying to understand  R and I have come to a stumbling block. i
have written:

>Empl <- list(employee="Anna",family=list(spouse="Fred",children=3,
+child.ages=c(4,7,9)),employee="John",family=list(spouse="Mary",children=2,
+child.ages=c(14,17)))
>Empl[c(2,4)]$family$spouse
[1] "Fred"
>#instead of [1] "Fred" "Mary"

Where am I wrong?

Thank you very much for your patience
Yours truly,
Fernando Mansito

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.

Reply via email to