View source: R/census_json_to_tibble.R
census_json_to_tibble | R Documentation |
Wrangle Census Table JSON
census_json_to_tibble(
jsonlist,
variable_names,
.val_trans_f = readr::parse_integer,
.value_column = "Population"
)
jsonlist |
a list of lists from fetching Census data in JSON format |
variable_names |
the census API codes for variables |
.val_trans_f |
a function for converting variable values to numbers |
.value_column |
the name of the numeric column in the new table |
a tibble with fields for geographies, variable name, and value
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.