valid_term | R Documentation |
Test whether each element in a term or term_rcrd object is valid.
valid_term(x)
x |
The object. |
Repairing a term vector replaces invalid terms with missing values.
A logical vector indicating whether each term is valid.
term-vector()
and repair_terms()
Other valid:
vld_term()
# valid term elements
valid_term(term("a", "a [3]", " b [ 1 ] ", "c[1,300,10]"))
# invalid term elements
valid_term(new_term(c("a b", "a[1]b", "a[0]", "b[1,]", "c[]", "d[1][2]")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.