tune (version 1.0.0)

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

Value

A character string of variable names

Arguments

x

An object.

...

Not used.

Examples

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

Run the code above in your browser using DataLab