Learn R Programming

term (version 0.3.5)

as_term: Coerce to a Term Vector

Description

Coerces an R object to a term-vector().

Usage

as_term(x, ...)

as.term(x, ...)

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

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

Arguments

x

The object.

...

Unused.

repair

A flag specifying whether to repair terms.

normalize

A flag specifying whether to normalize terms.

name

A string specifying the name of the parameter.

Methods (by class)

  • as_term(character): Coerce character vector to term vector

  • as_term(numeric): Coerce numeric object to term vector

Details

as.term has been [Soft-deprecated] for as_term.

See Also

term-vector() 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