tune (version 0.1.2)

outcome_names: 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 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, ...)

Arguments

x

An object.

...

Not used.

Value

A character string of variable names

Examples

Run this code
# NOT RUN {
library(dplyr)
lm(cbind(mpg, wt) ~ ., data = mtcars) %>%
  purrr::pluck(terms) %>%
  outcome_names()
# }

Run the code above in your browser using DataLab