powered by
Take a formula and return a vector of the variables on the right hand side
rhs.vars(formla)
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