Learn R Programming

rtimes (version 0.3.0)

cf_candidate_details: Campaign finance NYTimes API - candidate details

Description

Campaign finance NYTimes API - candidate details

Usage

cf_candidate_details(campaign_cycle = NULL, fec_id = NULL, key = NULL, ...)

Arguments

campaign_cycle
An even-numbdered year in YYYY format. Presidential data: 2008-present; Congressional data: 2000-present
fec_id
FEC id
key
your New York Times API key; pass in, or loads from .Rprofile as nytimes_cf_key, or from .Renviron as NYTIMES_CF_KEY
...
Curl options (debugging tools mostly) passed to GET

References

http://developer.nytimes.com/docs/campaign_finance_api/

Examples

Run this code
## Not run: 
# cf_candidate_details(campaign_cycle = 2008, fec_id = 'P80003338')
# cf_candidate_details(campaign_cycle = 2012, fec_id = 'P80003338')
# ## End(Not run)

Run the code above in your browser using DataLab