Tests whether a term vector has inconsistent elements. Returns TRUE if includes missing or invalid terms.

is_inconsistent_terms(x, ...)

Arguments

x

The object.

...

Unused.

Value

A logical scalar indicating whether the object's terms are inconsistent.

Examples

is_inconsistent_terms(term("b[2]"))
#> [1] FALSE
is_inconsistent_terms(term("b[2]", "b[1]"))
#> [1] FALSE
is_inconsistent_terms(term("b[2]", "b[1,1]"))
#> [1] TRUE