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)
(formula()).
(list()) with elements "lhs" and "rhs", both character().
list()
"lhs"
"rhs"
character()
# NOT RUN { extract_vars(Species ~ Sepal.Width + Sepal.Length) extract_vars(Species ~ .) # }
Run the code above in your browser using DataLab