Learn R Programming

term (version 0.3.5)

normalize_terms: Normalize Terms

Description

Normalizes a term vector.

Usage

normalize_terms(x)

Value

The normalized term vector.

Arguments

x

The object.

Details

If a parameter such as b is a scalar then b[1] is replaced by b but if higher indices are included such as b[2] then b is replaced by b[1].

See Also

term-vector() and repair_terms()

Examples

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

Run the code above in your browser using DataLab