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
The following code removes a variable before a prep step. The step_scale() function ignores the fact that the column was previously dropped and output of the prep will show center step works on 3 cols, and scale on 4 cols (or in dev version says Sepal.Width is being scaled). Comment out the first prep() and the scale will show it's working on 3 columns. Very weird issue!
This is done in a single pipeline but represents the building of building different recipes in stages.
library(recipes)
iris %>%
recipe() %>%
step_rm(Sepal.Width) %>%
# comment out the next line to see the correct behaviour
prep() %>%
step_center(all_numeric()) %>%
step_scale(all_numeric()) %>%
prep()
Session Info:
Tried on latest CRAN version with everything fully up to date and then latest github of recipes
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.
The following code removes a variable before a prep step. The
step_scale()
function ignores the fact that the column was previously dropped and output of the prep will show center step works on 3 cols, and scale on 4 cols (or in dev version says Sepal.Width is being scaled). Comment out the firstprep()
and the scale will show it's working on 3 columns. Very weird issue!This is done in a single pipeline but represents the building of building different recipes in stages.
Session Info:
Tried on latest CRAN version with everything fully up to date and then latest github of recipes
The text was updated successfully, but these errors were encountered: