Label American Community Survey data using table and column metadata from Census Reporter
Source:R/get_acs_metadata.R
label_acs_metadata.Rd
Label American Community Survey data using table and column metadata from Census Reporter
Usage
label_acs_metadata(
data,
survey = "acs5",
year = 2021,
perc = TRUE,
geoid_col = "GEOID",
variable_col = "variable"
)
label_acs_table_metadata(
data,
survey = "acs5",
year = 2021,
variable_col = "variable"
)
label_acs_column_metadata(
data,
survey = "acs5",
year = 2021,
variable_col = "variable"
)
Arguments
- data
A data frame downloaded with
tidycensus::get_acs()
.- survey
Survey, "acs5", "acs3", or "acs1".
- year
Sample year (between 2006 and 2021).
- perc
If
TRUE
(default), use the denominator column ID to calculate each estimate as a percent share of the denominator value and usetidycensus::moe_prop()
to calculate a new margin of error for the percent estimate.- geoid_col
A GeoID column name to use if perc is
TRUE
, Defaults to 'GEOID'.- variable_col
Variable column name. Defaults to "variable"