Re: [R] Accessing the elements of a list

2008-02-01 Thread Thibaut Jombart
Shubha Vishwanath Karanth wrote: > Hi R, > > > > I wanted to know how do we access the elements of a list. In particular, > > > > v=list(c(1,2,3,4,5),c(1,2,33,4,5),c(1,2,333,4,5),c(1,2,,4,5)) > > > > I want to access all the thirds items of the elements of the list. i.e., > I want to acce

Re: [R] Accessing the elements of a list

2008-02-01 Thread Bill.Venables
you think you can't use sapply before we can really help you, though. Bill Venables. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Shubha Vishwanath Karanth Sent: Friday, 1 February 2008 7:05 PM To: [EMAIL PROTECTED] Subject: [R] Accessing the ele

[R] Accessing the elements of a list

2008-02-01 Thread Shubha Vishwanath Karanth
Hi R, I wanted to know how do we access the elements of a list. In particular, v=list(c(1,2,3,4,5),c(1,2,33,4,5),c(1,2,333,4,5),c(1,2,,4,5)) I want to access all the thirds items of the elements of the list. i.e., I want to access the elements, 3,33,333,. This can be done throug