iris %>%
tidy_formula(target = Species, tidyselect::everything()) -> f
f
f %>%
f_modify_formula(
rhs_remove = c("Petal.Width", "Sepal.Length"),
rhs_add = "Custom_Variable"
)
f %>%
f_modify_formula(
rhs_remove = "Petal",
lhs_replace = "Petal.Length"
)
Run the code above in your browser using DataLab