dep_build_varlist {deprivateR} | R Documentation |
Create Variable Lists
Description
This function creates a vector or tibble
containing
variables included in particular calls.
Usage
dep_build_varlist(geography, index, year, survey = "acs5", output = "vector")
Arguments
geography |
A character scalar; one of |
index |
A character scalar or vector listing deprivation measures
to return. These include the area deprivation index ( |
year |
A numeric scalar between 2010 and 2020 |
survey |
A character scalar representing the Census product. It can
be any American Community Survey product (either |
output |
A character scalar; either |
Value
A vector of variable names or a tibble
containing both
variable names, labels, and the measure(s) they are associated with.
Examples
# Gini coefficient at the Census tract level
dep_build_varlist(geography = "tract", index = "gini", year = 2019)