You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 line
465B

  1. out_officers <- function(path_data_prep_officers, path_out_report_list) {
  2. out <- path("data-out", "officers", "officers.parquet")
  3. dir_create(path_dir(out))
  4. report_list <- out_open_dataset_db(path_out_report_list)
  5. officers <-
  6. prep_open_dataset_db(path_data_prep_officers) |>
  7. semi_join(report_list, by = "report_id") |>
  8. rename(address_lookup = address) |>
  9. distinct() |>
  10. collect()
  11. arrow::write_parquet(officers, out)
  12. dirname(out)
  13. }