A function that takes a vector and returns TRUE or FALSE. TRUE columns are selected.
.and.dots
Optional extra columns to include. May be a character vector of names(DT) or numeric (positions) or logical. If provided, the columns so added (if they do not satisfy Which) will be after all the columns Which do so satisfy.
checkDT
If TRUE (the default), an informative error message is provided if DT is not a data.table.
.and.grep
A character vector of regular expressions to match to the names
of DT. The corresponding columns will be included in the result.