rhs.vars: Right-hand Side Variables

Description Usage Arguments Value Examples

View source: R/BMisc.R

Description

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

Usage

1
rhs.vars(formla)

Arguments

formla

a formula

Value

vector of variable names

Examples

1
2
3
4
5
ff <- yvar ~ x1 + x2
rhs.vars(ff)

ff <- y ~ x1 + I(x1^2)
rhs.vars(ff)

BMisc documentation built on Dec. 18, 2020, 5:08 p.m.