Last chance! 50% off unlimited learning
Sale ends in
Take a formula and return a vector of the variables on the right hand side
rhs_vars(formula)
vector of variable names
a formula
ff <- yvar ~ x1 + x2
rhs_vars(ff)
ff <- y ~ x1 + I(x1^2)
rhs_vars(ff)
Run the code above in your browser using DataLab