
Last chance! 50% off unlimited learning
Sale ends in
Given a formula()
f
, returns all variables used on the left-hand side and
right-hand side of the formula.
extract_vars(f)
(list()
) with elements "lhs"
and "rhs"
, both character()
.
(formula()
).
extract_vars(Species ~ Sepal.Width + Sepal.Length)
extract_vars(Species ~ .)
Run the code above in your browser using DataLab