drop_cov_from_formula: Drop a Covariate from a Formula

View source: R/BMisc.R

drop_cov_from_formulaR Documentation

Drop a Covariate from a Formula

Description

drop_cov_from_formula adds drops some covariates from a formula; covs should be a list of variable names

Usage

drop_cov_from_formula(covs, formula)

Arguments

covs

should be a list of variable names

formula

the formula to drop covariates from

Value

formula

Examples

ff <- y ~ x + w + z
drop_cov_from_formula(list("w", "z"), ff)

drop_cov_from_formula("z", ff)


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