any_breaker: Is there any breaker in exposure?

View source: R/actions.R

any_breakerR Documentation

Is there any breaker in exposure?

Description

Function designed to be used as trigger in act_after_exposure(). Returns TRUE if exposure attribute of .tbl has any information about data units not obeying the rules, i.e. rule breakers.

Usage

any_breaker(.tbl)

Arguments

.tbl

Result of exposure, i.e. data frame with exposure attribute.

See Also

assert_any_breaker for implicit usage of any_breaker().

Examples

mtcars %>%
  expose(data_packs(. %>% dplyr::summarise(nrow_low = nrow(.) > 50))) %>%
  any_breaker()

echasnovski/ruler documentation built on April 3, 2023, 4:17 p.m.