Iterate through data tables
问题 I have 3 tables as tbl.1 <- data.table("A" = runif(5), "B" = runif(5)) tbl.2 <- data.table("A" = runif(5), "B" = runif(5)) tbl.3 <- data.table("A" = runif(5), "B" = runif(5)) I would like to iterate through the tables with a loop such as for (i in 1:3) { # Open tbl.i # Do something } How can this be done? I can put the tables on a list an iterate through the list which works OK. However, I am trying to keep the tables as unique objects for various reasons. Thanks. 回答1: If you don't want to