extractval: Extract value in term name

Description Usage Arguments Value Examples

View source: R/helperfuns.R

Description

Extract value in term name

Usage

1
extractval(term, name, null_for_missing = FALSE)

Arguments

term

character representing a formula term

name

character; the value to extract

null_for_missing

logical; if TRUE, returns NULL if argument is missing

Value

the value used for name

Examples

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

deepregression documentation built on Oct. 5, 2021, 1:06 a.m.