Validates the elements of a term vector.
vld_term(x, validate = "class")
The object to check.
A string specifying the level of the validation. The possible values in order of increasing strictness are 'class', 'valid', 'consistent' and 'complete'.
A flag indicating whether the condition was met.
Missing values are ignored as are duplicates and order.
# NOT RUN {
vld_term(c("x[2]", "x[1]"))
vld_term(as.term(c("x[2]", "x[1]")))
# }
Run the code above in your browser using DataLab