Accepts a formula and returns the rhs as a character vector.
f_formula_to_charvec(f, include_lhs = FALSE, .data = NULL)
formula
FALSE. If TRUE, appends lhs to beginning of vector
dataframe for names if necessary
chr vector
iris %>%
tidy_formula(target = Species, tidyselect::everything()) -> f
f
#> Species ~ Sepal.Length + Sepal.Width + Petal.Length + Petal.Width
#> <environment: 0x120346af0>
f %>%
f_formula_to_charvec()
#> [1] "Sepal.Length" "Sepal.Width" "Petal.Length" "Petal.Width"