is_conditional: Check if rules are conditional rules

Description Usage Arguments Value Examples

View source: R/conditional.R

Description

Check if rules are conditional rules

Usage

1

Arguments

rules

validator object containing validation rules

...

not used

Value

logical indicating which rules are conditional

Examples

1
2
3
4
5
6
7
8
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)

data-cleaning/errorlocate documentation built on Sept. 22, 2018, 9:37 p.m.