View source: R/drop_original_cols.R
drop_original_cols | R Documentation |
Drops the original column from the dataframe once bins are made. Throws an error if the same column has multiple bin cols.
drop_original_cols(.data, ..., restore_names = FALSE)
.data |
dataframe output from bin_cols |
... |
tidyselect. default chooses all cols created from binning |
restore_names |
Logical, default FALSE. rename the binned cols with the original column names? |
dataframe
iris %>%
bin_cols(Sepal.Length) %>%
bin_cols(Sepal.Width, pretty_labels = TRUE) -> iris1
iris1
iris1 %>%
drop_original_cols(restore_names = TRUE)
iris1 %>%
drop_original_cols(restore_names = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.