Learn R Programming

BMisc (version 1.3.0)

rhs.vars: rhs.vars

Description

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

Usage

rhs.vars(formla)

Arguments

formla

a formula

Value

vector of variable names

Examples

Run this code
# NOT RUN {
ff <- yvar ~ x1 + x2
rhs.vars(ff)

# }

Run the code above in your browser using DataLab