View source: R/recode_functs.R
age_recode | R Documentation |
Age recode Function to recode age-values in ACS dataframe, removing extraneous text and ordering column as factor
age_recode(df, age_col, regroup = "decennial")
df |
ACS dataframe with age values |
age_col |
Name of age column as data-masked object |
regroup |
Whether to regroup-age values. Accepts "decennial" for decennial Census results, "race_age" for regrouping race/age column, and "sex_age" for regrouping sex/age groups. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.