Re: [R] Problem of vocabulary : retrieve element of a list of a list

From: Felix Andrews <felix_at_nfrac.org>
Date: Fri, 31 Aug 2007 18:43:43 +1000

x[[1]][4]

On 8/31/07, Ptit_Bleu <ptit_bleu_at_yahoo.fr> wrote:
> Hi,
>
> I read the posts for 2 hours and ?list and tried many comninations but I
> haven't found the answer to this basic question. So I decided to post my
> question even if it is a silly one ...
>
> What is the instruction to retrieve, for example, the "D" of the first list
> ?
> Thanks in advance,
> Ptit Bleu.
>
>
> > x<-list(LETTERS[1:5], LETTERS[10:20])
> > x
> [[1]]
> [1] "A" "B" "C" "D" "E"
>
> [[2]]
> [1] "J" "K" "L" "M" "N" "O" "P" "Q" "R" "S" "T"
>
> --
> View this message in context: http://www.nabble.com/Problem-of-vocabulary-%3A-retrieve-element-of-a-list-of-a-list-tf4358872.html#a12422479
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help_at_stat.math.ethz.ch 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.
>

-- 
Felix Andrews / 安福立
PhD candidate
Integrated Catchment Assessment and Management Centre
The Fenner School of Environment and Society
The Australian National University (Building 48A), ACT 0200
Beijing Bag, Locked Bag 40, Kingston ACT 2604
http://www.neurofractal.org/felix/
voice:+86_1051404394 (in China)
mobile:+86_13522529265 (in China)
mobile:+61_410400963 (in Australia)
xmpp:foolish.android_at_gmail.com
3358 543D AAC6 22C2 D336  80D9 360B 72DD 3E4C F5D8

______________________________________________
R-help_at_stat.math.ethz.ch 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.
Received on Fri 31 Aug 2007 - 08:59:42 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 03 Sep 2007 - 07:34:38 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.