Extract Variables from a Formula
Given a formula()
f
, returns all variables used on the left-hand side and
right-hand side of the formula.
extract_vars(f)
f |
( |
(list()
) with elements "lhs"
and "rhs"
, both character()
.
extract_vars(Species ~ Sepal.Width + Sepal.Length) extract_vars(Species ~ .)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.