There are multiple ways to select columns of data.table by using a variable holding the desired column names (with=FALSE, .., mget, ...).<
with=FALSE
..
mget