dropCovFromFormla {BMisc}R Documentation

Drop a Covariate from a Formula

Description

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

Usage

dropCovFromFormla(covs, formla)

Arguments

covs

should be a list of variable names

formla

which formula to drop covariates from

Value

formula

Examples

formla <- y ~ x + w + z
dropCovFromFormla(list("w","z"), formla)

dropCovFromFormla("z", formla)


[Package BMisc version 1.4.6 Index]