Remove a column or columns from a data.frame.

remove_columns(df, column_names, verbose = FALSE)

Arguments

df

Data.frame or tibble.

column_names

Column name or column names as a character vector.

verbose

Boolean, provides extra information when removing a column.

Value

Data.frame.

Examples

df <- remove_columns(cars, "speed")