How to select variables using data table