get_svi_x | R Documentation |
get_svi_x()
calculates and constructs an SVI table for a
customized geographic level of interest based on CDC/ATSDR SVI
documentation (https://www.atsdr.cdc.gov/placeandhealth/svi/data_documentation_download.html).
By supplying a crosswalk (relationship table) between a Census geographic
level and a customized geographic level, census data are summed across the
customized geographic units, and SVI is calculated accordingly to indicate
the relative social vulnerability of the geographic units (communities).
get_svi_x(year, data, xwalk)
year |
The year of interest (available 2012-2021), must match the year specified in retrieving census data. |
data |
The census data retrieved by |
xwalk |
A crosswalk (relationship table) between the Census geographic
level and the customized geographic level of interest. A crosswalk between
US counties and commuting zones
|
A tibble of SVI with rows representing the customized geographic
units (with a column name of GEOID
), and columns indicating variable
names (first two columns containing geographic information). For detailed
description of the variable names (column names), please refer to
CDC/ATSDR
documentation.
get_svi()
for SVI calculation from census data at a Census
geographic level, and find_svi()
for retrieving census data and
calculating SVI for multiple year-state pairs.
# Census API key required
cty2020 <- get_census_data(
year = 2020,
geography = "county",
exp = TRUE
)
get_svi_x(year = 2020, data = cty2020, xwalk = cty_cz_2020_xwalk)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.