stephenholzman / tidyusafec

An R wrapper for the OpenFEC API that features tidy cleaning.
https://stephenholzman.github.io/tidyusafec/
Other
7 stars 0 forks source link

make unlisting explicit? #25

Open stephenholzman opened 6 years ago

stephenholzman commented 6 years ago

Depending on whether the get_ function depends on candidate_id or committee_id, the results of search_candidates can be unintuitive.

Think we should return all natural list columns in search_candidates. Example of candidate_id: search_candidates(cycle=2018) %>% get_candidate_totals()

Example of committee_id: search_candidates(cycle=2018) %>% explode_committee_listcols() %>% get_schedule_a()

stephenholzman commented 6 years ago

search_candidates has been updated to include a boolean unnest_committees argument. Examples in the documentation have not been updated.