[R] (no subject)

FERNANDO MANSITO CABALLERO fernando.mansito at gmail.com
Sun Oct 4 20:31:26 CEST 2015


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]]



More information about the R-help mailing list