Learn R Programming

mmrm (version 0.3.14)

h_add_terms: Add Formula Terms with Character

Description

Add formula terms from the original formula with character representation.

Usage

h_add_terms(f, adds, drop_response = FALSE)

Value

A new formula with elements in drops removed.

Arguments

f

(formula)
a formula to be updated.

adds

(character)
representation of elements to be added.

drop_response

(flag)
whether response should be dropped.

Details

Elements in adds will be added from the formula, while the environment of the formula is unchanged. If adds is NULL or character(0), the formula is unchanged.