View source: R/select_cols_by_ref.R
select_by_ref | R Documentation |
Select columns in a data.table by reference
select_by_ref(DT, keep.cols)
DT |
a |
keep.cols |
a character vector of columns in |
data(mtcars) DT <- as.data.table(mtcars) DT <- select_by_ref(DT, "hp") head(DT)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.