Learn R Programming

errorlocate (version 1.1.1)

is_conditional: Check if rules are conditional rules

Description

Check if rules are conditional rules

Usage

is_conditional(rules, ...)

Value

logical indicating which rules are conditional

Arguments

rules

validator object containing validation rules

...

not used

See Also

Other rule type: is_categorical(), is_linear()

Examples

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

is_conditional(v)

Run the code above in your browser using DataLab