census_block_group_population: Shiny App to Lookup Urban and Rural Data for a Given Census...

View source: R/census.R

app_census_block_group_populationR Documentation

Shiny App to Lookup Urban and Rural Data for a Given Census Block Group

Description

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

Usage

app_census_block_group_population()

census_block_group_population(
  fips_code_12,
  vintage = c("2010", "2000"),
  key = Sys.getenv("CENSUS_KEY")
)

Arguments

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.

Value

A tibble with FIPS codes and P2 variables for the given FIPS code.

Examples

## 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)

RoeLabWustl/roelabr documentation built on Aug. 27, 2022, 9:57 a.m.