[R] automatic generation of variable names

Benjamin Otto b.otto at uke.uni-hamburg.de
Thu Feb 23 11:10:43 CET 2006


Hi,

is there some way to generate a varaible name automatically?

What I would like to do is:

Instead
-------

table1 <- orderbysomecolumn
table2 <- orderbysomecolumn
table3 <- orderbysomecolumn
...

automate
--------
for (i in 1:numoftables) {
   table%someconcatenation%i <- orderbysomecolumn
}

regards,
Benjamin




More information about the R-help mailing list