[R] Shame on me ...

Ptit_Bleu ptit_bleu at yahoo.fr
Mon Sep 3 08:48:01 CEST 2007


I  read again "R pour les débutants" (for another problem) and I found the
answer to my question.
Sorry .
Have a nice week,
Ptiti Bleu.

Felix Andrews wrote:
> 
> 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.
> 
> 

-- 
View this message in context: http://www.nabble.com/Problem-of-vocabulary-%3A-retrieve-element-of-a-list-of-a-list-tf4358872.html#a12457151
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list