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

outcome_names doesn't work for recipes with NA roles #518

Closed
EmilHvitfeldt opened this issue Jun 21, 2022 · 1 comment · Fixed by #519
Closed

outcome_names doesn't work for recipes with NA roles #518

EmilHvitfeldt opened this issue Jun 21, 2022 · 1 comment · Fixed by #519
Labels
bug an unexpected problem or unintended behavior

Comments

@EmilHvitfeldt
Copy link
Member

library(tidymodels)

rec <- recipe(mtcars) %>%
  update_role(disp) %>%
  update_role(mpg, new_role = "outcome")

outcome_names(rec)
#>  [1] "mpg" NA    NA    NA    NA    NA    NA    NA    NA    NA

rec <- recipe(mpg ~ disp, mtcars)

outcome_names(rec)
#> [1] "mpg"

Created on 2022-06-20 by the reprex package (v2.0.1)

@EmilHvitfeldt EmilHvitfeldt added the bug an unexpected problem or unintended behavior label Jun 21, 2022
@github-actions
Copy link

github-actions bot commented Jul 6, 2022

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.

@github-actions github-actions bot locked and limited conversation to collaborators Jul 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant