Is there a way to use .SDcols in datatable to select rows. For example, in mtcars, select rows where vs, am and carb all equal 1. I have a lot of columns and want to avoid a lot of typing.
I know this does not work
mtcars[ lapply( .SD == 1), , .SDcols = c('vs, 'am', 'carb')]