Check if rules are categorical

is_categorical(x, ...)

Arguments

x

validator object

...

not used

Value

logical indicating which rules are purely categorical/logical

Examples

v <- validator( A %in% c("a1", "a2")
              , B %in% c("b1", "b2")
              , if (A == "a1") B == "b1"
              , y > x
              )

is_categorical(v)
#> [1]  TRUE  TRUE  TRUE FALSE