[R] Renaming variables

mosojn marta.osojnik at gmail.com
Tue Jun 14 13:04:44 CEST 2011


Hi guys,

I checked previous posts and I saw similar questions have been answered;
they didn't help me solve my problem though. I am using R version 2.13.0
(2011-04-13), Platform: x86_64-pc-mingw32/x64 (64-bit) and I am having
difficulties renaming variables. I tried with this command: 

names (oldvariable) <- 'new_variable'

and now when I type in oldvariable the new name pops out in form: [1]
"new_variable" BUT when I try typing in new_variable I get the message 

Error: object 'new_variable' not found

I also tried with fix(mydata) command, but editor basically opens up empty,
so I don't understand why this is happening.

If you know how to advise me, I'll be grateful. 

Thank you!

Marta

--
View this message in context: http://r.789695.n4.nabble.com/Renaming-variables-tp3596227p3596227.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list