devtools::install_github('yougov-datascience/ygresults')
options(results_api_key = <your api key>,
results_api_url = <your api base url>)
All listed as their defaults
options(parallel_unpacking = TRUE, # controls whether unpacking is completed in parallel (windows machines may have issues with this)
parallel_packing = TRUE, # controls whether packing for upload is done in parallel
parallel_download = TRUE # controls whether requests for multiple counties are executed simultaneously or serially
)
df <- results_get("test_20180828", county = "04019")
Returns a ?tibble::tibble
, in 'tidy' (read: long) format.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.