cf_candidate_state: Campaign finance - candidates from a state

Description Usage Arguments References See Also Examples

Description

Campaign finance - candidates from a state

Usage

1
2
cf_candidate_state(campaign_cycle, state, chamber = NULL,
  district = NULL, key = NULL, ...)

Arguments

campaign_cycle

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

state

(character) Two-letter state abbreviation. required.

chamber

(character) house or senate. required.

district

(character) Specify the district number. Use 1 for states with a single representative. (House requests only - districts with Senate requests will be ignored.). required.

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_search

Examples

1
2
3
4
5
6
7
8
## Not run: 
cf_candidate_state(campaign_cycle = 2014, state = "TX")
cf_candidate_state(campaign_cycle = 2012, state = "NM")
cf_candidate_state(campaign_cycle = 2016, state = "OR", chamber = "senate")
cf_candidate_state(campaign_cycle = 2016, state = "CA", 
  chamber = "house", district = 2)

## End(Not run)

rOpenGov/rtimes documentation built on July 21, 2019, 3:19 a.m.