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
ursday, 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 messag
> 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
3 matches
Mail list logo