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 <- rbind(dt_1, dt_2, ..., dt_N)
or
dt <- rbindlist(list(dt_1, dt_2, ..., dt_N))
then the memory usage is approximately double the amount needed for dt_1,dt_2,...,dt_N
. Is there a way to bind them wihout increasing the memory consumption significantly? Note that I do not need dt_1, dt_2, ..., dt_N
once they are combined together.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…