I want to update a group of columns programmatically. This is simple using data.frame, but in data.table this requires a confusing combination of substitute
, as.symbol
, and eval
.
Am I doing this right?
Simple example:
## GENERATE DATA
library(data.table)
set.seed(1)
dt <- data.table(