Learn R Programming

deepregression (version 2.2.0)

extractval: Formula helpers

Description

Formula helpers

Extractval with multiple options

Usage

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

extractvals(term, names)

extractlen(term, data)

form2text(form)

Value

the value used for name

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

names

character vector of names

data

a data.frame or list

form

formula that is converted to a character string

Examples

Run this code
extractval("s(a, la = 2)", "la")

Run the code above in your browser using DataLab