Assert a delta table is within tolerance, else error (pure)
Source:R/validate.R
assert_within_tolerance.RdThe equivalence gate: fails (stops) if mean|Δ| exceeds mean_tol or
max|Δ| exceeds max_tol. Returns the summary invisibly on success so a
notebook can report it.
Arguments
- d
a tibble from
score_delta()- mean_tol
tolerance on mean absolute delta
- max_tol
tolerance on max absolute delta
- delta_col
name of the delta column (default
"delta")
Value
(invisibly) the score_delta_summary() list