Hi,

I guess this is pretty basic.

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.

Is there a way I can rename all these variables as simply X1,X2,.....X25
 without writing 25 lines of code, one line for renaming each variable (eg:
 > X1=score.X1  >X2=score.X2  and so on) ?

Thanks for your help.

Regards,
Preetam

-- 
Preetam Pal
(+91)-9432212774
M-Stat 2nd Year,                                             Room No. N-114
Statistics Division,                                           C.V.Raman
Hall
Indian Statistical Institute,                                 B.H.O.S.
Kolkata.

        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to