select_columns | R Documentation |
This function can be used when, apart from the standardized columns, there is a selection of columns in the data frame that should be kept around. The function was written because columns can create conflicts when multiple data frames are joined that carry columns with the same name but different data types. Removing excess columns prevents this.
select_columns(data, col_keep)
data |
data frame |
col_keep |
vector with column names that should be kept |
a data frame with reduced number of columns
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.