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.

12 lines
441B

  1. prepare_committees <- function(cover_raw, report_list = tar_read(report_list)) {
  2. latest_report_by_committee <- report_list |> slice_max(end_date, by = "sboe_id")
  3. cover_raw |>
  4. semi_join(latest_report_by_committee, by = "report_id") |>
  5. select(sboe_id:committee_type, fund_type, fund_name)
  6. }
  7. write_committee_parquet <- function(committees, out_path = "../data/committees.parquet") {
  8. arrow::write_parquet(committees, out_path)
  9. }