remove_most_frequent_dummy
wasn’t working right when there was a tie for which value was the most frequent. Closes #22 by eden70.remove_selected_columns
to dummy_columns()
. If TRUE (not default), removes the columns which are used to create the dummy columns.sort_columns
parameter. Now by default will order by level if the variable is a factor type.split
parameter didn’t work properly.split
parameter. Thanks to Matthew Sigal for submitting issue on GitHub.split
parameter in dummy_cols to handle if a row has multiple categories. Thanks to Matthew Sigal and Andrew Fernandes for the GitHub suggestion.Thanks to GitHub user yu45020 dummy_cols() is now about >20% faster and much more memory efficient.
Both dummy_cols() and dummy_rows() now return the same data type inputted e.g. data.frame input returns data.frame, tibble returns tibble.
Fix documentation that incorrectly said default value for new dummy rows is 0. It is in fact a value of NA.
Reduces number of parameter that were in previous version.
Significant speed increases for both dummy_cols() and dummy_rows() functions.
dummy_cols() now accepts numeric columns.