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
tdhock
changed the title
can not replace list column element with NULL in table with 1 row
Inconsistent replacement of list column element with NULL in table with 1 row
Dec 9, 2022
In base R data.frame we can replace an element of a list column with NULL via:
However in data.table, doing that results in deleting the list column entirely:
Request: can we make the above code do a replacement (like base R data.frame) instead of deleting the column?
The above issue is confusing because it is inconsistent with how data table handles replacement in tables with more than one row:
Actually, we can do the replacement (inconsistently) in data.table via
The text was updated successfully, but these errors were encountered: