You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Inconsistent deep/shallow copying when subsetting using an always TRUE condition #4740
For consistency, I would assume that a deep copy should be made no matter the form of the 'i' expression and whether any rows happen to be filtered by the subset condition. In my particular case, I encountered a bug because I went on to do in place manipulations on the new data.table, unknowingly altering the original.
This comment suggests to me that a deep copy is always to be expected.
Activity
jangorecki commentedon Oct 6, 2020
Agree, thank you for reporting. Similar report was already made by @renkun-ken about
DT[TRUE]. Your one lists more examples.renkun-ken commentedon Oct 6, 2020
Similar with #2254.