Re: [R] Problems with lists...

2009-07-16 Thread Dimitris Rizopoulos
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 -- Di

Re: [R] Problems with lists...

2009-07-16 Thread David Huffer
Like, > a = list (1:3,4:6,7:9) > a [[1]] [1] 1 2 3 [[2]] [1] 4 5 6 [[3]] [1] 7 8 9 > a [[2]] [2] [1] 5 > a [[3]] [3] [1] 9 > HTH -- David -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of voidobscura Sent: Thursday, July 16,