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:
why not a list?
On Fri, Jan 30, 2009 at 10:10 AM, Suresh_FSFM
<suresh.ghalsasi at gmail.com>
Dear R-Experts,
Seek your help.
Please let me know how arrays of different sizes can be collected in
array.
suppose I want to collect following arrays in one array. How can I do
array(1): #row=3, #col=4(these columns store data of different types)
array(2): #row=6, #col=4
array(3): #row=3, #col=4
....
want to store in Main_array
How to define dimensions of Main_array?
Thank you.
Regards,
Suresh
--
View this message in context:
Sent from the R help mailing list archive at Nabble.com.