View source: R/outcome-names.R
outcome_names | 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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.