Learn R Programming

autostats (version 0.4.1)

tidy_formula: tidy formula construction

Description

Takes a dataframe and allows for use of tidyselect to construct a formula.

Usage

tidy_formula(data, target, ...)

Value

a formula

Arguments

data

dataframe

target

lhs

...

tidyselect. rhs

Examples

Run this code

iris %>%
tidy_formula(Species, tidyselect::everything())

Run the code above in your browser using DataLab