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)


bcallaway11/BMisc documentation built on Feb. 4, 2025, 10:43 p.m.