50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

term (version 0.1.0)

vld_term: Validate Term

Description

Validates the elements of a term vector.

Usage

vld_term(x, validate = "class")

Arguments

x

The object to check.

validate

A string specifying the level of the validation. The possible values in order of increasing strictness are 'class', 'valid', 'consistent' and 'complete'.

Value

A flag indicating whether the condition was met.

Details

Missing values are ignored as are duplicates and order.

See Also

chk_term()

Examples

Run this code
# 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