Take a formula and return a vector of the variables on the right hand side
Examples
ff <- yvar ~ x1 + x2
rhs.vars(ff)
#> [1] "x1" "x2"
ff <- y ~ x1 + I(x1^2)
rhs.vars(ff)
#> [1] "x1" "I(x1^2)"
Take a formula and return a vector of the variables on the right hand side
ff <- yvar ~ x1 + x2
rhs.vars(ff)
#> [1] "x1" "x2"
ff <- y ~ x1 + I(x1^2)
rhs.vars(ff)
#> [1] "x1" "I(x1^2)"