Exposure is a result of exposing data to rules. It is
implemented with S3 class
exposure which is a list of the following
packs_info - a packs_info object;
tidy data validation report.
is_exposure(.x) get_exposure(.object) remove_exposure(.object)
Object to test.
Object to get or remove
object if it is exposure and its attribute
object with removed attributed 'exposure'.
my_col_packs <- col_packs( col_sum_props = . %>% dplyr::summarise_all( rules( col_sum_low = sum(.) > 100, col_sum_high = sum(.) < 1000 ) ) ) mtcars_exposed <- mtcars %>% expose(my_col_packs) mtcars_exposure <- mtcars_exposed %>% get_exposure() is_exposure(mtcars_exposure)#>  TRUEidentical(remove_exposure(mtcars_exposed), mtcars)#>  TRUEidentical(get_exposure(mtcars_exposure), mtcars_exposure)#>  TRUE