Learn R Programming

term (version 0.3.5)

new_term: Construct a New Term Object

Description

Use this function to quickly construct a term object from a character vector, without checking the input. Use term() to repair the input.

Usage

new_term(x = character())

Arguments

x

A character vector.

See Also

new_term_rcrd()

Examples

Run this code
new_term()
new_term(c("a", "b[1]", "b[2]"))

# Terms are not checked for validity:
new_term("r[")
repair_terms(new_term("r["))

Run the code above in your browser using DataLab