outcome_names {tune} | R Documentation |
Determine names of the outcome data in a workflow
Description
Determine names of the outcome data in a workflow
Usage
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, ...)
Arguments
x |
An object. |
... |
Not used. |
Value
A character string of variable names
Examples
library(dplyr)
lm(cbind(mpg, wt) ~ ., data = mtcars) %>%
purrr::pluck(terms) %>%
outcome_names()
[Package tune version 1.3.0 Index]