Related to #571, #1710, a few others about allowing NSE on LHS of :=.
Based on the example given here:
#4030 (comment)
keep = c('Species', 'Sepal.Width')
dt[ , setdiff(names(dt), keep) := NULL]
setcolorder(dt, keep)
Would be quite natural/less clumsy/available for chaining to do:
keep = c('Species', 'Sepal.Width')
dt[ , !keep := NULL] #or maybe, !(keep)
setcolorder(dt, keep)
Related to #571, #1710, a few others about allowing NSE on LHS of :=.
Based on the example given here:
#4030 (comment)
Would be quite natural/less clumsy/available for chaining to do: