This sounds stupid, but I have a list of list of data.table like this
list(list(table1=data.table(A1=1:3, B1=2:4),
table2=data.table(A2=3:1, B2=4:2)),
list(table1=data.table(A1=-1:3, B1=-2:2),
table2=data.table(A2=-3:1, B2=-4:0)),
list(table1=data.table(A1=1:3, B1=2:4),
table2=data.table(A2=3:1, B2=4:2)))
I would like to rbind each tableX together, and return a list of data.table, i.e.
list(table1=data.table(A1=c(1:3, -1:3, 1:3), B1=c(2:4, -2:2, 2:4)),
table2=data.table(A2=c(3:1, -3:1, 3:1), B2=c(4:2, -4:0, 4:2)))
In the real world scenario, the input would be a list of thousands of lists of tens of data.tables with hundreds of columns each, so hard-coding won't be an option.