[R] create variable names using paste

Uwe Ligges ligges at statistik.tu-dortmund.de
Sun Nov 20 16:46:49 CET 2011



On 20.11.2011 15:32, Alaios wrote:
> Dear all,
>
> I would like based on a variable values, like threshold<- 90 to create variables name that will load data sets
>
> For example
>
> paste('mystring',threshold,sep="")<-load('myfile')

This is a FAQ!
You probably want to assign into a list. But if you really want to do 
the above, see ?assign

Uwe Ligges

>
> How I can doi something like that in R?
>
>
> B.R
> Alex
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> 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