Skip to contents

Merging the cleaning logs

Usage

create_combined_log(list_of_log, dataset_name = "checked_dataset")

Arguments

list_of_log

A list file containig all the logs

dataset_name

The dataset's name, if it exists in the list_of_log

Value

Combined cleaning log

Examples

list <- cleaningtools::cleaningtools_raw_data |>
  check_pii(uuid_column = "X_uuid") |>
  check_duplicate(uuid_column = "X_uuid") |>
  check_value(uuid_column = "X_uuid")

create_combined_log(list_of_log = list)
#> List of element to combine- checked_dataset, potential_PII, duplicate_log, flaged_value
#> $checked_dataset
#> # A tibble: 632 × 348
#>    X.U.FEFF.start    end   date_assessment deviceid enumerator_num neighbourhood
#>    <chr>             <chr> <chr>           <chr>             <int> <chr>        
#>  1 2021-07-05T10:58… 2021… 2021-07-05      collect…             13 A2           
#>  2 2021-07-05T10:08… 2021… 2021-07-05      collect…             13 A2           
#>  3 2021-07-05T11:22… 2021… 2021-07-05      collect…              8 A2           
#>  4 2021-07-04T22:22… 2021… 2021-07-04      collect…             15 A2           
#>  5 2021-07-04T23:11… 2021… 2021-07-04      collect…             15 A2           
#>  6 2021-07-05T10:17… 2021… 2021-07-05      collect…             14 A2           
#>  7 2021-07-05T11:38… 2021… 2021-07-05      collect…              4 A4           
#>  8 2021-07-05T11:01… 2021… 2021-07-05      collect…             16 A2           
#>  9 2021-07-05T11:45… 2021… 2021-07-05      collect…             16 A2           
#> 10 2021-07-05T10:19… 2021… 2021-07-05      collect…              8 A2           
#> # ℹ 622 more rows
#> # ℹ 342 more variables: consent_remote <chr>, hhh_r <chr>,
#> #   will_to_response_r <chr>, age_respondent_r <int>, age_hoh <int>,
#> #   gender_hoh <chr>, displace_status <chr>, displace_status_returnee <chr>,
#> #   return_date <chr>, num_hh_member <int>, hh_hosting <chr>,
#> #   num_hh_hosting <int>, hh_hosted <chr>, shelter_occupation <chr>,
#> #   shelter_occupation_other <chr>, property_title <chr>, …
#> 
#> $cleaning_log
#> # A tibble: 7 × 7
#>   uuid              question issue old_value change_type new_value check_binding
#>   <chr>             <chr>    <chr> <chr>     <chr>       <chr>     <chr>        
#> 1 all               neighbo… Pote… NA        NA          NA        neighbourhoo…
#> 2 all               water_s… Pote… NA        NA          NA        water_supply…
#> 3 all               water_s… Pote… NA        NA          NA        water_supply…
#> 4 all               water_s… Pote… NA        NA          NA        water_supply…
#> 5 all               consent… Pote… NA        NA          NA        consent_tele…
#> 6 ac26e24d-12be-47… X_index  Poss… 88        NA          NA        X_index ~/~ …
#> 7 e8b1ba82-59df-49… X_index  Poss… 99        NA          NA        X_index ~/~ …
#>