inlineFctForm: Inline function in formula

View source: R/misc.R

inlineFctFormR Documentation

Inline function in formula

Description

Detect the presence of inline function(s) in a formula and parse them.

Usage

inlineFctForm(form, only.resp = TRUE)

Arguments

form

character corresponding to a formula, e.g. "y ~ 1 + x"

only.resp

if TRUE, the presence of inline function(s) is detected only in the response

Value

list with one component per term of the formula (first the response and then the predictors, if any), each component containing a vector of characters with the untransformed variable first and then the inline function(s) from the outermost to the innermost, or NA if there is no inline function corresponding to this term

Author(s)

Timothee Flutre


timflutre/rutilstimflutre documentation built on Feb. 7, 2024, 8:17 a.m.