This seems to be the most straightforward way to me:
ID[JN, (select) := mget(paste0('i.', select))]
More Related Contents:
- Subset rows corresponding to max value by group using data.table
- Apply a function to every specified column in a data.table and update by reference
- dcast warning: ‘Aggregation function missing: defaulting to length’
- Fastest way to replace NAs in a large data.table
- Fastest way to add rows for missing time steps?
- Summarizing multiple columns with data.table
- Why is rbindlist “better” than rbind?
- Apply multiple functions to multiple columns in data.table
- Data.table meta-programming
- data.table join then add columns to existing data.frame without re-copy
- Convert column classes in data.table
- Using lists inside data.table columns
- Perform a semi-join with data.table
- Creating dummy variables in R data.table
- Why is plyr so slow?
- How to reorder data.table columns (without copying)
- Elegantly assigning multiple columns in data.table with lapply()
- Using setDT inside a function
- how to show a legend on dual y-axis ggplot
- How to add a index by set of data when using rbindlist?
- Dynamically add column names to data.table when aggregating
- R: Reshaping Multiple Columns from Long to Wide
- Long Numbers As A Character String
- How to group data.table by multiple columns?
- R data.table apply function to rows using columns as arguments
- Selecting a subset of columns in a data.table
- R: how to rbind two huge data-frames without running out of memory
- Merge overlapping ranges into unique groups, in dataframe
- Index unique values in data.table
- R fast single item lookup from list vs data.table vs hash