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 May 29, 2024, 7:32 a.m.