powered by
Given a formula() f, returns all variables used on the left-hand side and right-hand side of the formula.
formula()
f
extract_vars(f)
(list()) with elements "lhs" and "rhs", both character().
list()
"lhs"
"rhs"
character()
(formula()).
extract_vars(Species ~ Sepal.Width + Sepal.Length) extract_vars(Species ~ .)
Run the code above in your browser using DataLab