factor_age_acs: Convert age_acs from character to factor

Description Usage Arguments See Also Examples

View source: R/dashboard-prep.R

Description

This will ensure correct ordering in plots, etc. Uses age_map sample data to identify factor levels.

Usage

1
factor_age_acs(pop, suppress_check = TRUE)

Arguments

pop

data frame: input population data for state

suppress_check

logical: If TRUE, does not print a coding summary

See Also

Other functions to prepare data for summarization: aggregate_pop(), extrapolate_pop(), prep_pop(), quarterly_filter(), quarterly_lapse(), recode_history()

Examples

1
2
3
4
5
6
## Not run: 
db_census <- "E:/SA/Data-production/Data-Dashboards/_Shared/census.sqlite3"
pop <- load_pop(db_census, "NC")
pop <- factor_age_acs(pop, suppress_check = FALSE)

## End(Not run)

southwick-associates/sadash documentation built on Jan. 6, 2022, 5:17 p.m.