My question is related to assignment by reference versus copying in data.table. I want to know if one can delete rows by reference, similar to
data.table
Instead or trying to set to NULL, try setting to NA (matching the NA-type for the first column)
set(DT,1:2, 1:3 ,NA_character_)