Skip to content
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_dummy with no variable selected #348

topepo opened this issue Jun 27, 2019 · 1 comment


Copy link

commented Jun 27, 2019

@kjell-stattenacity In cases where step_dummy() receives no variables, it should not just fail.


zdat <- tibble(
  y = c(1, 2, 3), 
  x = c("a", "a", "a"),
  z = 3:1

transform_recipe2 <- recipe(y ~ x, data = zdat) %>%
  step_zv(all_predictors()) %>% 
  step_dummy(all_predictors()) %>%
  prep(training = zdat)
topepo added a commit that referenced this issue Jun 28, 2019

This comment has been minimized.

Copy link
Collaborator Author

commented Jun 28, 2019

Changes have been checked in if you want to test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.