R/normalize-terms.R
normalize_terms.Rd
Normalizes a term vector.
normalize_terms(x)
The object.
The normalized term vector.
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].
b
b[1]
b[2]
term-vector() and repair_terms()
term-vector()
repair_terms()
normalize_terms(new_term(c("b", "b[3]"))) #> <term[2]> #> [1] b[1] b[3] normalize_terms(new_term(c("b[1]", "a[3]"))) #> <term[2]> #> [1] b a[3]