Get presidential contributions by size
Source:R/paths-presidential.R
fec_get_presidential_contributions_by_size.Rd
Contribution receipts by size per candidate. Filter by candidate_id, election_year and/or size
Usage
fec_get_presidential_contributions_by_size(
candidate_id,
sort_nulls_last,
page,
sort_hide_null,
election_year,
size,
sort_null_only,
per_page,
sort,
api_key = Sys.getenv("FEC_API_KEY", unset = "DEMO_KEY")
)
Arguments
- candidate_id
A unique identifier assigned to each candidate registered with the FEC. If a person runs for several offices, that person will have separate candidate IDs for each office. -P00000001 All candidates -P00000002 Democrasts -P00000003 Republicans
- sort_nulls_last
Toggle that sorts null values last
- page
For paginating through results, starting at page 1
- sort_hide_null
Hide null values on sorted column(s).
- election_year
Year of election
- size
The total all contributions in the following ranges:
-0 $200 and under -200 $200.01 - $499.99 -500 $500 - $999.99 -1000 $1000 - $1999.99 -2000 $2000 +
Unitemized contributions are included in the0
category.- sort_null_only
Toggle that filters out all rows having sort column that is non-null
- per_page
The number of results returned per page. Defaults to 20.
- sort
Provide a field to sort by. Use
-
for descending order.- api_key
An API key provided by the API provider. This key is not clearly documented in the API description. Check the API documentation for details.