[R] modifying colnames of tables in a loop

Werner Wernersen pensterfuzzer at yahoo.de
Thu Nov 16 15:01:08 CET 2006


Hi,

I have a list with the names of tables, e.g.
l <- c("t1","t2","t3")
and I want to change the colnames of each of the
tables in a for loop like this:
for (x in l) {
    colnames(eval(x)) <- lower.case(colnames(eval(x)))
}

This does not work but could someone give me some help
to get on the right track?

Thanks a million,
  Werner



More information about the R-help mailing list