Learn R Programming

BMisc (version 1.4.7)

lhs.vars: Left-hand Side Variables

Description

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)

Value

vector of variable names

Arguments

formla

a formula

Examples

Run this code
ff <- yvar ~ x1 + x2
lhs.vars(ff)

Run the code above in your browser using DataLab