outcome_names {tune} | R Documentation |
Determine names of the outcome data in a workflow
outcome_names(x, ...)
## S3 method for class 'terms'
outcome_names(x, ...)
## S3 method for class 'formula'
outcome_names(x, ...)
## S3 method for class 'recipe'
outcome_names(x, ...)
## S3 method for class 'workflow'
outcome_names(x, ...)
## S3 method for class 'tune_results'
outcome_names(x, ...)
x |
An object. |
... |
Not used. |
A character string of variable names
library(dplyr)
lm(cbind(mpg, wt) ~ ., data = mtcars) %>%
purrr::pluck(terms) %>%
outcome_names()