Learn R Programming

rtimes (version 0.5.0)

cf_candidate_search: Campaign finance - candidate search

Description

Campaign finance - candidate search

Usage

cf_candidate_search(campaign_cycle = NULL, query = NULL, key = NULL, ...)

Arguments

campaign_cycle

An even-numbdered year in YYYY format. Presidential data: 2008-present; Congressional data: 2000-present

query

Last name of a candidate

key

(character) your Propublica API key; pass in, or loads from .Renviron as PROPUBLICA_API_KEY. See rtimes-package for info on rate limits.

...

Curl options (debugging tools mostly) passed to HttpClient

References

http://propublica.github.io/campaign-finance-api-docs

See Also

Other campaign-finance: cf_candidate_details, cf_candidate_leaders, cf_candidate_new, cf_candidate_state

Examples

Run this code
# NOT RUN {
cf_candidate_search(campaign_cycle = 2016, query='Wilson')
cf_candidate_search(campaign_cycle = 2008, query='obama')
# }

Run the code above in your browser using DataLab