census_zipcode_population: Shiny App to Lookup Urban and Rural Data for a Given 5-Digit...

View source: R/census.R

app_census_zipcode_populationR Documentation

Shiny App to Lookup Urban and Rural Data for a Given 5-Digit Zip Code

Description

Shiny App to Lookup Urban and Rural Data for a Given 5-Digit Zip Code

Lookup Urban and Rural Data for a Given 5-Digit Zip Code

Usage

app_census_zipcode_population()

census_zipcode_population(
  zip_code_5,
  vintage = c("2010", "2000"),
  key = Sys.getenv("CENSUS_KEY")
)

Arguments

zip_code_5

five-digit zip 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 population data for a zip code tabulation area.

Examples

## Not run: 
## only one download from Census per session per vintage
census_zipcode_population("63130")
census_zipcode_population("63102")

## another vintage
census_zipcode_population("63130", vintage = "2000")

## End(Not run)

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