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

candidate.R #7

Closed stephenholzman closed 6 years ago

stephenholzman commented 6 years ago

Start off with get_candidate_totals. Even though the /candidate/{candidate_id}/totals/ end point only takes one candidate at a time, this function should allow for passing multiple candidate IDs and returning a tidy data frame (or at least relatively tidy, each row will be a candidate even though there may be a lot of 'gather' used with the totals by type).

stephenholzman commented 6 years ago

Yea, we're going full tidy. Got multiple candidates in though