[R] Problems with lists...
Dimitris Rizopoulos
d.rizopoulos at erasmusmc.nl
Thu Jul 16 19:06:02 CEST 2009
have a look at the help page for ?"["; try also this
a[[2]]
a[[2]][2]
a[[3]][3]
Best,
Dimitris
voidobscura wrote:
>> a
> [[1]]
> [1] 1 2 3
>
> [[2]]
> [1] 4 5 6
>
> [[3]]
> [1] 7 8 9
>
> I need to access individual elements, such as the 5 or the 9. Can anyone
> please tell me the syntax to do this?
>
> tia
--
Dimitris Rizopoulos
Assistant Professor
Department of Biostatistics
Erasmus University Medical Center
Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands
Tel: +31/(0)10/7043478
Fax: +31/(0)10/7043014
More information about the R-help
mailing list