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

tidy_formula(data, target, ...)

Arguments

data

dataframe

target

lhs

...

tidyselect. rhs

Value

a formula

Examples


iris %>%
tidy_formula(Species, tidyselect::everything())
#> Species ~ Sepal.Length + Sepal.Width + Petal.Length + Petal.Width
#> <environment: 0x15b2dec00>