[R] Loop question
R. Michael Weylandt
michael.weylandt at gmail.com
Thu May 31 08:12:45 CEST 2012
Note that in R >= 2.15 you can also use paste0 for this operation more
efficiently.
Michael
On Thu, May 31, 2012 at 1:58 AM, Özgür Asar <oasar at metu.edu.tr> wrote:
> Dear Sebastian,
>
> The following will create the names
>
> paste("sb",1:5,sep="")
> paste("sw",1:5,sep="")
> paste("Lw",1:5,sep="")
> paste("Lb",1:5,sep="")
>
> Then you can easily combine and/or order them in R.
>
> Hope this helps.
> Ozgur
>
> -----
> ************************************
> Ozgur ASAR
>
> Research Assistant
> Middle East Technical University
> Department of Statistics
> 06531, Ankara Turkey
> Ph: 90-312-2105309
> http://www.stat.metu.edu.tr/people/assistants/ozgur/
> --
> View this message in context: http://r.789695.n4.nabble.com/Loop-question-tp4631896p4631900.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org 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.
More information about the R-help
mailing list