removeFormFunc: Lexically removes a function from a formula.

Description Usage Arguments Value Author(s) Examples

Description

Remove the I(..) or similar function from a formula. So effect ~ I(sqrt(nitro))*treat + I(nitro^2) becomes effect ~ sqrt(nitro)*treat + nitro^2

Usage

1
removeFormFunc(formula, func = "I")

Arguments

formula

valid formula object

func

Formula to be remove, without the ()

Value

Returns the string without the formula part.

Author(s)

Thomas Lumley, Dieter Menne

Examples

1
removeFormFunc(effect ~ I(sqrt(nitro))*treat + I(nitro^2))

dmenne/dlatex documentation built on May 15, 2019, 9:32 a.m.