In data.table, it is possible to work directly on the current data table (say DT) without creating a copy of it. For example, this can be done when creating a new column.
DT[,new_col:=1]
I would like to know how this can be done for merging, in particular left join. For example, the data table way of left join is
DT_right[DT_left,on="id"]
However, this does not modify the original DT_left table, requiring me to reassign. i.e.
DT_left = DT_right[DT_left,on="id"]
Is there a way for me to do this without reassigning? i.e. working on DT_left directly.