Description Usage Arguments Value
View source: R/acs_screening.R
The U.S. Census Bureau has published 5-year esimates of demographic data since 2009. The data is aggregated at the national, state, county, census tract, and census block group levels.
This function queries the
Census
Bureau API based on FIPS codes for various geographies. Substituting a
wildcard character "*"
instead of a FIPS code returns all values
within the parent geography (i.e. tract = "*"
will return data for
all tracts within a county).
The API limits the number of queries for users who lack an API key. A key can be obtained here.
1 2 3 4 5 6 7 8 9 |
var |
Variables to query from the ACS. For a list of the available variables and codes (for the 2017 ACS), see the Official Documentation. Defaults to Median Household Income (B19013_00E) and Median Home Value (Owner-Occupied Units) (B25077_001E). Supports groups. |
year |
Four-digit year. Defaults to the most recent data, for 2017. |
state |
Two-digit state FIPS code. Alternatively, |
county |
Three-digit county FIPS code. Supports wildcard string
( |
tract |
Five-digit census tract FIPS code. Supports wildcard string
( |
blkgrp |
One-digit blog group FIPS code. |
key |
(optional) Developer key. |
Tibble of data points and FIPS codes, one line per valid input geography.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.