is_categorical {errorlocate} | R Documentation |
Check if rules are categorical
Description
Check if rules are categorical
Usage
is_categorical(x, ...)
Arguments
x |
validator or expression object |
... |
not used |
Details
#' @note errorlocate
supports linear,
categorical and conditional rules to be used in finding errors. Other rule types
are ignored during error finding.
Value
logical indicating which rules are purely categorical/logical
See Also
Other rule type:
is_conditional()
,
is_linear()
Examples
v <- validator( A %in% c("a1", "a2")
, B %in% c("b1", "b2")
, if (A == "a1") B == "b1"
, y > x
)
is_categorical(v)
[Package errorlocate version 1.1.1 Index]