Thanks to Richard Heiberger, John Fox, and Avi Gross, who pointed out
to me that I should
> use double brackets
> [[ ]]
>
> > xxx[[2,3]]
> $a
> [1] "n"
>
> $b
> [1] 20
I really should've should've known that; I feel a bit duh now!
See fortunes::fortune(341) for a relevant comment. :-)
Thank
Use double [[ ]]
> xxx[[2,3]]
$a
[1] "n"
$b
[1] 20
>
From: R-help on behalf of Rolf Turner
Sent: Sunday, February 14, 2021 10:35 PM
To: "r-help@R-project.org\" "@r-project.org
Subject: [External] [R] Dimensioning lists.
I have a setting in which i
2 matches
Mail list logo