Filter the results of validation to show only broken rules, optionally including successful decisions.
Examples
# Sample validation results data frame
sample_results <- data.frame(
description = c("Rule 1", "Rule 2", "Rule 3"),
status = c("error", "success", "error"),
name = c("rule1", "rule2", "rule3"),
expression = c("col1 > 0", "col2 <= 5", "col3 != 10"),
stringsAsFactors = FALSE
)
# Show only broken rules
broken_rules <- rules_broken(sample_results, show_decision = FALSE)