Learn R Programming

mets (version 1.3.11)

drop.specials: Remove Special Terms from a Formula

Description

Removes terms such as strata() or cluster() from a formula/terms object.

Usage

drop.specials(x, components, ...)

Value

The updated formula with an attribute "variables" containing the extracted variable names from removed specials.

Arguments

x

a formula object.

components

character vector of special term names to remove.

...

additional arguments passed to lava::Specials.