is_contradicted_by {validatetools} | R Documentation |
Find out which rules are conflicting
Description
Find out for a contradicting rule which rules are conflicting. This helps in determining and assessing conflicts in rule sets. Which of the rules should stay and which should go?
Usage
is_contradicted_by(x, rule_name)
Arguments
x |
|
rule_name |
|
Value
character
with conflicting rules.
See Also
Other feasibility:
detect_boundary_cat()
,
detect_boundary_num()
,
detect_infeasible_rules()
,
is_infeasible()
,
make_feasible()
Examples
rules <- validator( x > 0)
is_infeasible(rules)
rules <- validator( rule1 = x > 0
, rule2 = x < 0
)
is_infeasible(rules)
detect_infeasible_rules(rules)
make_feasible(rules)
# find out the conflict with this rule
is_contradicted_by(rules, "rule1")
[Package validatetools version 0.5.2 Index]