h_add_terms: Add Formula Terms with Character

View source: R/utils-formula.R

h_add_termsR Documentation

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)

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.

Value

A new formula with elements in drops removed.


openpharma/mmrm documentation built on April 14, 2025, 2:10 a.m.