repair_terms | R Documentation |
Repairs a terms vector.
repair_terms(x, normalize = TRUE)
x |
The object. |
normalize |
A flag specifying whether to normalize terms. |
Invalid elements are replaced by missing values and spaces removed.
The repaired term vector.
term-vector()
, valid_term()
and 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)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.