Gives the overall percentage of validation results that are passing.

percent_pass_validation(results)

Arguments

results

A list of `dccvalidator` results, which are of the type `check_pass`, `check_fail`, or `check_warn`.

Value

Percent of validation checks passed, rounded to the nearest whole number. Returns 0 if `results` is `NULL` or if all checks in `results` are `NULL`.