Skip to contents

Take a formula and return a vector of the variables on the left hand side, it will return NULL for a one sided formula

Usage

lhs.vars(formla)

Arguments

formla

a formula

Value

vector of variable names

Examples

ff <- yvar ~ x1 + x2
lhs.vars(ff)
#> [1] "yvar"