app_census_block_group_population | R Documentation |
Shiny App to Lookup Urban and Rural Data for a Given Census Block Group
Lookup Urban and Rural Data for a Given Census Block Group
app_census_block_group_population() census_block_group_population( fips_code_12, vintage = c("2010", "2000"), key = Sys.getenv("CENSUS_KEY") )
fips_code_12 |
12-digit FIPS code |
vintage |
Year of dataset, e.g., 2000. This data is only collected during decennial censuses. |
key |
Your Census API key, requested using https://api.census.gov/data/key_signup.html. |
A tibble with FIPS codes and P2 variables for the given FIPS code.
## Not run: ## each new state in a session requires a download from the Census Bureau census_block_group_population("295101022001") census_block_group_population("171635033341") ## looking up FIPS codes for another vintage census_block_group_population("295101022001", vintage = "2000") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.