powered by
Repairs a terms vector.
repair_terms(x, normalize = TRUE)
The repaired term vector.
The object.
A flag specifying whether to normalize terms.
Invalid elements are replaced by missing values and spaces removed.
term-vector(), valid_term() and normalize_terms()
term-vector()
valid_term()
normalize_terms()
repair_terms(new_term(c("b[3]", "b"))) repair_terms(new_term(c("a[3]", "b[1]"))) repair_terms(new_term(c("a [3]", " b [ 1 ] "))) repair_terms(new_term(c("a", NA)))
Run the code above in your browser using DataLab