Apologies for a question that probably makes it obvious that I usually work in Python/pandas, but I\'m stuck with this. How do I select a data.table column usin
data.table
You can do assignments without get but using brackets:
dt[, ("col1"):=col2]
instead of:
dt[, get("col1"):=col2]
See for more explanation: Select / assign to data.table variables which names are stored in a character vector