How to select variables using data table

Since your question is similar, but not quite the same (and this thread was resolved for the OP ā€” which means it looks resolved to other users) would you mind opening a new question and linking to this one?

Also, a minimal reprex of what you have so far is always helpful! :slightly_smiling_face: