Learn R Programming

errorlocate (version 1.1.1)

is_categorical: Check if rules are categorical

Description

Check if rules are categorical

Usage

is_categorical(x, ...)

Value

logical indicating which rules are purely categorical/logical

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.

See Also

Other rule type: is_conditional(), is_linear()

Examples

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

is_categorical(v)

Run the code above in your browser using DataLab