rhs_vars: Right-hand Side Variables

View source: R/BMisc.R

rhs_varsR Documentation

Right-hand Side Variables

Description

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

Usage

rhs_vars(formula)

Arguments

formula

a formula

Value

vector of variable names

Examples

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

ff <- y ~ x1 + I(x1^2)
rhs_vars(ff)


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