powered by
Determine names of the outcome data in a workflow
outcome_names(x, ...)# S3 method for terms outcome_names(x, ...)# S3 method for formula outcome_names(x, ...)# S3 method for recipe outcome_names(x, ...)# S3 method for workflow outcome_names(x, ...)# S3 method for tune_results outcome_names(x, ...)
# S3 method for terms outcome_names(x, ...)
# S3 method for formula outcome_names(x, ...)
# S3 method for recipe outcome_names(x, ...)
# S3 method for workflow outcome_names(x, ...)
# S3 method for tune_results outcome_names(x, ...)
A character string of variable names
An object.
Not used.
library(dplyr) lm(cbind(mpg, wt) ~ ., data = mtcars) %>% purrr::pluck(terms) %>% outcome_names()
Run the code above in your browser using DataLab