[R] Renaming variables

Clint Bowman clint at ecy.wa.gov
Fri Sep 20 17:33:36 CEST 2013


or

with(score.plot(X1, X2))

Clint Bowman			INTERNET:	clint at ecy.wa.gov
Air Quality Modeler		INTERNET:	clint at math.utah.edu
Department of Ecology		VOICE:		(360) 407-6815
PO Box 47600			FAX:		(360) 407-7534
Olympia, WA 98504-7600

         USPS:           PO Box 47600, Olympia, WA 98504-7600
         Parcels:        300 Desmond Drive, Lacey, WA 98503-1274

On Fri, 20 Sep 2013, Aaron Mackey wrote:

> On Fri, Sep 20, 2013 at 10:10 AM, Preetam Pal <lordpreetam at gmail.com> wrote:
>
>> I have 25 variables in the data file (name: score), i.e. X1,X2,.....,X25.
>>
>> I dont want to use score$X1, score$X2 everytime I use these variables.
>>
>
> attach(score)
>
> plot(X1, X2) # etc. etc.
>
> -Aaron
>
> 	[[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