[R] change the names of all listed objects

Luca Laghi l.laghi at unibo.it
Fri Aug 3 16:23:01 CEST 2007


Dear list members,
I have created seven objects, from a to g, so that ls() gives me
[1] "a" "b" "c" "d" "e" "f" "g"

how can I automatically change their names in

"a1" "b1" "c1" "d1" "e1" "f1" "g1"

It seems simple, ut it is driving me mad.
Thank you very much for your help.
Luca Laghi



More information about the R-help mailing list