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

get_itemized_contributions() returns fewer records than it should #27

Closed chrismp closed 4 years ago

chrismp commented 5 years ago

Any idea why this code returns only 48 records?

itemizedContribs <- get_itemized_contributions(
  committee_id = "C00577130"
)

FEC's site returns many more itemized contributions, of course. https://www.fec.gov/data/receipts/?two_year_transaction_period=2016&data_type=processed&committee_id=C00577130&min_date=01%2F01%2F2015&max_date=03%2F31%2F2016

stephenholzman commented 5 years ago

I haven't done extensive testing with Presidential committees yet, but I'd start troubleshooting this by setting more explicit parameters (max_date, min_date, etc) and checking for where they line up with the main FEC site and not. I'll take a look at this next time I work on the package.

chrismp commented 5 years ago

Turns out it’s the FEC. For some reason its API returned fewer records than one can find via its search engine

On Thu, Apr 18, 2019 at 19:23 Stephen Holzman notifications@github.com wrote:

I haven't done extensive testing with Presidential committees yet, but I'd start troubleshooting this by setting more explicit parameters (max_date, min_date, etc) and checking for where they line up with the main FEC site and not. I'll take a look at this next time I work on the package.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/stephenholzman/tidyusafec/issues/27#issuecomment-484721073, or mute the thread https://github.com/notifications/unsubscribe-auth/AB4RUO6GSDLZAZVYQDQ5O5LPRD7GXANCNFSM4HGV7D2A .

-- Chris Persaud ChrisPersaud.com