lhs_vars: Left-hand Side Variables

View source: R/BMisc.R

lhs_varsR Documentation

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(formula)

Arguments

formula

a formula

Value

vector of variable names

Examples

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

BMisc documentation built on Aug. 22, 2026, 5:07 p.m.