rhs_vars {BMisc}R Documentation

Right-hand Side Variables

Description

Take a formula and return a vector of the variables on the right hand side

Usage

rhs_vars(formula)

Arguments

formula

a formula

Value

vector of variable names

Examples

ff <- yvar ~ x1 + x2
rhs_vars(ff)

ff <- y ~ x1 + I(x1^2)
rhs_vars(ff)


[Package BMisc version 1.4.8 Index]