label_decennial | R Documentation |
multi_geo_*
functions, and their underlying tidycensus::get_*
functions, return data tables with variable codes (e.g. "B01001_003"), which can be joined with lookup tables to get readable labels (e.g. "Total!!Male!!Under 5 years"). These functions are just quick wrappers around the common task of joining your data frame with the variable codes and labels.
label_decennial(data, year = 2020, sumfile = "dhc", variable = variable)
label_acs(data, year = 2023, survey = "acs5", variable = variable)
data |
A data frame/tibble. |
year |
The year of data; defaults to 2023 for ACS, or 2020 for decennial. |
sumfile |
For |
variable |
The bare column name of variable codes; defaults to |
survey |
For |
A tibble with the same number of rows as data
but an additional column called label
decennial_vars acs_vars
Other augmenting-functions:
adj_inflation()
Other augmenting-functions:
adj_inflation()
## Not run:
acs_pops <- multi_geo_acs("B01001")
label_acs(acs_pops)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.