cf_candidate_new: Campaign finance - get new candidates

Description Usage Arguments References See Also Examples

Description

Campaign finance - get new candidates

Usage

1
cf_candidate_new(campaign_cycle = NULL, key = NULL, ...)

Arguments

campaign_cycle

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

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_search, cf_candidate_state

Examples

1
2
3
4
5
6
## Not run: 
cf_candidate_new(campaign_cycle = 2016)
cf_candidate_new(campaign_cycle = 2015)
cf_candidate_new(campaign_cycle = 2014)

## End(Not run)

ropengov/rtimes documentation built on July 21, 2019, 5:27 a.m.