Learn R Programming

term (version 0.3.5)

as_term_rcrd: Coerce to a Term Record

Description

Coerces an R object to a term_rcrd.

Usage

as_term_rcrd(x, ...)

# S3 method for character as_term_rcrd(x, repair = FALSE, ...)

# S3 method for numeric as_term_rcrd(x, name = "par", ...)

# S3 method for term as_term_rcrd(x, repair = FALSE, ...)

Arguments

x

The object.

...

Unused.

repair

A flag specifying whether to repair terms.

name

A string specifying the name of the parameter.

Methods (by class)

  • as_term_rcrd(character): Coerce character vector to term_rcrd

  • as_term_rcrd(numeric): Coerce numeric vector to term_rcrd

  • as_term_rcrd(term): Coerce term vector to term_rcrd

See Also

as_term() and repair_terms()

Examples

Run this code
as_term(matrix(1:4, 2))
as_term(c("parm3[10]", "parm3[2]", "parm[2,2]", "parm[1,1]"))

Run the code above in your browser using DataLab