[R] Problem of vocabulary : retrieve element of a list of a list
Ptit_Bleu
ptit_bleu at yahoo.fr
Fri Aug 31 11:10:22 CEST 2007
In fact I read "R pour les debutants" by Emmanuel Paradis but I didn't find
the solution.
Then I looked for on R-Help with no result.
Again I do aplologize for this silly question and I thank you for the
solution (second one).
Ptit Bleu (who won't send others silly questions in the future)
jiho wrote:
>
> On 2007-August-31 , at 10:17 , Ptit_Bleu wrote:
>
>>> x<-list(LETTERS[1:5], LETTERS[10:20])
>
> not sure to have understood exactly what you meant.
> if you want to search for the D in the list:
> lapply(x,charmatch,"D")
> should get you started.
>
> if you just want to know the syntax to extract an element from a list
> x[[1]][4]
> will get you the "D". but I a sure you would have found out if you
> read the manual carefully.
>
> maybe you should read an R introduction and practice on the examples
> there rather than go straight into your own data. It would take a
> week at most and is very rewarding in the long term.
> An introduction in english:
> http://cran.r-project.org/doc/manuals/R-intro.pdf
> A nice one in French
> http://www.cran.r-project.org/doc/contrib/Paradis-rdebuts_fr.pdf
>
> Cheers,
>
> JiHO
> ---
> http://jo.irisson.free.fr/
>
> ______________________________________________
> 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#a12423052
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list