You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I spotted a potential issue with dummyVars: When a character variable (instead of a factor variable) is included in the RHS of the formula the sep argument is ignored for these variables (ie the separators between variable name and levels are not inserted).
It's a minor issue but took me some time to figure out the reason. Is this expected behaviour? If not I'm happy to invest some time into finding a fix.
I'll try to add a MRE to this as well but seeing same behavior for the fullRank and levelsOnly arguments as well, i.e. dummyVars seems to ignore them if the RHS has character columns. Thanks to OP for calling this behavior out!
Hey,
I spotted a potential issue with dummyVars: When a character variable (instead of a factor variable) is included in the RHS of the formula the sep argument is ignored for these variables (ie the separators between variable name and levels are not inserted).
It's a minor issue but took me some time to figure out the reason. Is this expected behaviour? If not I'm happy to invest some time into finding a fix.
Cheers
Minimal, reproducible example:
Session Info:
The text was updated successfully, but these errors were encountered: