[R] Looping through series of names

Petr PIKAL petr.pikal at precheza.cz
Thu Apr 12 09:05:35 CEST 2007


r-help-bounces at stat.math.ethz.ch napsal dne 11.04.2007 22:45:19:

> Hi
> I am very new to R and have not able to find the answer to my question
> in the manual or any other post.  I have a dataset that has various
> different sites names with data relating to each site.  The data is in
> one dataset.  I want to loop through the different site names and
> perform my test on each site.  The sites are named not numbers for
> example "YYC".  How do I do this.  I hope I was clear enough.
> Thanks for the help 

Instead of looping try to look at aggregate, tapply or by. And give a 
quick look to posting guide where you can find some general rules and 
hints what to do before posting and how to formulate your question to get 
helpful answer.


>    [[alternative HTML version deleted]]
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide 
> and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list