[R] automatic generation of variable names

From: Benjamin Otto <b.otto_at_uke.uni-hamburg.de>
Date: Thu 23 Feb 2006 - 21:10:43 EST


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



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Feb 23 21:21:54 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:42:39 EST