conditional_drop | R Documentation |
conditional_drop
removes a set of columns passed by a character vector
if they exist in the data frame. If none exist, the original dataframe is
returned
conditional_drop(data, cols)
data |
Data frame |
cols |
Character vector with names of one or more columns to drop |
Used in scripts: Robust function: FALSE
conditional_drop
returns the data frame without those columns
that do exist.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.