-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
step for dummy variables across multiple columns #716
Comments
I can take this one!
|
I think that
Correct. I'm not sure if there is an easy way to define the prefix for the new indicator variables (from the data). Just so we are clear, imagine columns for language spoken. There data might look like:
We would end up with
|
Perfect. I think a good default for the prefix would be based on the first column selected. Should the step have a way to deal with a high number of labels? I was thinking of a |
I think that adding a |
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex https://reprex.tidyverse.org) and link to this issue. |
In cases where a row of a data set can have multiple categories spread across columns, a step to find the unique set of categories, then create dummy columns for each. Each row can have multiple 1's in the new dummy variables.
The text was updated successfully, but these errors were encountered: