Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upstep_other reports that all the input columns have been othered #338
Comments
|
The changes are:
|
Minimal, reproducible example:
This will yield
However, the variable Status was not actually binned according to other, as it has only two values well above the threshold. Upon inspection of the steps, you will find that the variable Status has the attribute collapse = TRUE.
Upon tracing through the code, I discovered the collapse flag is always set to true, when it should be dynamically evaluated.
The issue is in the last line of the function. Can we add in a collapse=all(orig %in% keepers) instead, or something similar?