jacobkap / fastDummies

The goal of fastDummies is to quickly create dummy variables (columns) and dummy rows.
https://jacobkap.github.io/fastDummies/
Other
36 stars 9 forks source link

Sort dummy columns following factor order. #11

Closed pbaylis closed 5 years ago

pbaylis commented 5 years ago

It would be useful for me to have the dummy columns this package creates (optionally) follow the ordering of the original factor variables. Maybe also true for others. For example, this issue could be resolved as well. I wrote some code to do this, happy to submit a PR if that's something you're willing to add.

jacobkap commented 5 years ago

Yes, please submit a pull request.