outcome_names: Determine names of the outcome data in a workflow

View source: R/outcome-names.R

outcome_namesR 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()

tune documentation built on March 19, 2022, 2:14 a.m.