How can I dynamically lookup multiple fields and add by reference using character vector variable as argument. In below case I want to lookup two columns and get ri
This seems to be the most straightforward way to me:
ID[JN, (select) := mget(paste0('i.', select))]