age_recode: Age recode Function to recode age-values in ACS dataframe,...

View source: R/recode_functs.R

age_recodeR Documentation

Age recode Function to recode age-values in ACS dataframe, removing extraneous text and ordering column as factor

Description

Age recode Function to recode age-values in ACS dataframe, removing extraneous text and ordering column as factor

Usage

age_recode(df, age_col, regroup = "decennial")

Arguments

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.


dpowerstp/acsprocess documentation built on Sept. 4, 2022, 10:18 a.m.