Learn R Programming

rtimes (version 0.3.0)

cf_candidate_search: Campaign finance NYTimes API - candidate search

Description

Campaign finance NYTimes API - 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
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_search(campaign_cycle = 2010, query='smith')
# # cf_candidate_search(campaign_cycle = 2008, query='obama')
# ## End(Not run)

Run the code above in your browser using DataLab