Skip to content
Back to formatted view

Raw Message

Message-ID: <4EC920E9.7060004@statistik.tu-dortmund.de>
Date: 2011-11-20T15:46:49Z
From: Uwe Ligges
Subject: create variable names using paste
In-Reply-To: <1321799575.25883.YahooMailNeo@web120101.mail.ne1.yahoo.com>

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.