Skip to content
Prev 168701 / 398502 Next

How to collect arrays in an array?

You'll need the [[ operator.

Your.list.name[[3]] gives the third element.


------------------------------------------------------------------------
----
ir. Thierry Onkelinx
Instituut voor natuur- en bosonderzoek / Research Institute for Nature
and Forest
Cel biometrie, methodologie en kwaliteitszorg / Section biometrics,
methodology and quality assurance
Gaverstraat 4
9500 Geraardsbergen
Belgium 
tel. + 32 54/436 185
Thierry.Onkelinx at inbo.be 
www.inbo.be 

To call in the statistician after the experiment is done may be no more
than asking him to perform a post-mortem examination: he may be able to
say what the experiment died of.
~ Sir Ronald Aylmer Fisher

The plural of anecdote is not data.
~ Roger Brinner

The combination of some data and an aching desire for an answer does not
ensure that a reasonable answer can be extracted from a given body of
data.
~ John Tukey

-----Oorspronkelijk bericht-----
Van: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org]
Namens Suresh_FSFM
Verzonden: vrijdag 30 januari 2009 16:45
Aan: r-help at r-project.org
Onderwerp: Re: [R] How to collect arrays in an array?


Thanks for a prompt response.
Ok. I see your point. 
However, then next silly question is how to access these elements of
list
dynamically?
suppose I want to access 3rd item or 3rd element of the list (which
would be
my array-3 stored at 3rd position in the list).

Thank you.

Regards,
Suresh
stephen sefick wrote:
<suresh.ghalsasi at gmail.com>
one
so?
http://www.nabble.com/How-to-collect-arrays-in-an-array--tp21748883p2174
8883.html
Mullis