powered by
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