I have few huge datatable dt_1, dt_2, ..., dt_N with same cols. I want to bind them together into a single datatable. If I use
dt_1, dt_2, ..., dt_N
datatable
dt
I guess <<- and get can help you with this.
<<-
get
UPDATE: <<- is not necessary.
df1 <- data.frame(x1=1:4, x2=letters[1:4], stringsAsFactors=FALSE) df2 <- df1 df3 <- df1 dt.lst <- c("df2", "df3") for (i in dt.lst) { df1 <- rbind(df1, get(i)) rm(list=i) } df1