View source: R/fetch_json_as_list.R
fetch_json_as_list | R Documentation |
Make a call to the Census API and convert the JSON response to an R list.
fetch_json_as_list(
variables,
year,
for_geo,
for_items,
survey_type,
table_or_survey_code,
...,
use_key = TRUE
)
variables |
<chr[]> a vector of variable names, like |
year |
an integer year, e.g. |
for_geo |
<chr> the geographical level the data will describe, e.g. |
for_items |
<chr[]> one or more instances of |
survey_type |
e.g. "acs" or "dec" |
table_or_survey_code |
e.g. "acs5" or "pl" |
... |
< |
use_key |
<lgl?> optional, should the query include a Census API key from the system environment. Defaults to |
a list of items read from json
build_api_url()
jsonlite::read_json()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.