Learn R Programming

term (version 0.1.0)

as.character.term: Coerce to a Term Vector

Description

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

Usage

# S3 method for term
as.character(x, ...)

as.term(x, ...)

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

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

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)

  • term: Coerce term vector to character vector

  • character: Coerce character vector to term vector

  • numeric: Coerce default object to term vector

See Also

term-vector() and repair_terms()

Examples

Run this code
# NOT RUN {
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