formulaHelpers: Formula helpers

extractvalR Documentation

Formula helpers

Description

Formula helpers

Usage

extractval(term, name, default_for_missing = FALSE, default = NULL)

extractlen(term, data)

form2text(form)

Arguments

term

formula term

name

character; the value to extract

default_for_missing

logical; if TRUE, returns default if argument is missing

default

value returned when missing

data

a data.frame or list

form

formula that is converted to a character string

Value

the value used for name

Examples

extractval("s(a, la = 2)", "la")


deepregression documentation built on Jan. 18, 2023, 1:11 a.m.