Get columns from a data table by specifying the index, column name as a string, or unquoted column name. Returns the column names or indices.
getcols(data, ..., as_index = FALSE)
the existing tbl
Columns to get
return the column indices (defaults to name)
vector of column names or indices
getcols(mtcars, 1, cyl, "disp", 5:7)
#> [1] "mpg" "cyl" "disp" "drat" "wt" "qsec"