View source: R/selection-filtering.R
colSelect | R Documentation |
Selection on a data.frame to keep or filter out specified columns only
colSelect(DF, IN, OUT, ..., type = "DF")
DF |
data.frame to be filtered |
IN |
column names to keep |
OUT |
column names to filter out |
... |
other paramaters (for base::grep) |
type |
pick the object to return; 'DF' sends back the filtered dataframe 'names' sends back the names (with the correct order) of the columns that are kept |
a dataframe or an ordered vector of the kept column names
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.