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, 2009 12:11 PM To: r-help@r-project.org Subject: [R] Problems with lists... > 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 -- View this message in context: http://www.nabble.com/Problems-with-lists...-tp24519517p24519517.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.