This function creates a vector or tibble
containing
variables included in particular calls.
dep_build_varlist(geography, index, year, survey = "acs5", output = "vector")
A character scalar; one of "state"
, "county"
, or
"tract"
A character scalar or vector listing deprivation measures
to return. These include the area deprivation index ("adi"
),
the gini coefficient ("gini"
), two versions of the neighborhood
deprivation index by Messer ("ndi_m"
) and Powell and Wiley
("ndi_pw"
), and four versions of the social vulnerability
index ("svi10"
, "svi14"
, "svi20"
, and "svi20s"
).
A numeric scalar between 2010 and 2020
A character scalar representing the Census product. It can
be any American Community Survey product (either "acs1"
,
"acs3"
, or "acs5"
). Note that "acs3"
was
discontinued after 2013.
A character scalar; either "vector"
(default) or
tibble
. See Return below.
A vector of variable names or a tibble
containing both
variable names, labels, and the measure(s) they are associated with.
# Gini coefficient at the Census tract level
dep_build_varlist(geography = "tract", index = "gini", year = 2019)
#> [1] "B19083_001"