educ_recode: Recode education values

educ_recodeR Documentation

Recode education values

Description

A function to recode tidycensus education columns to a shorter string for graphing purposes

Usage

educ_recode(df, educ_col, new_educ = "educ_recode")

Arguments

df

A tidycensus dataframe with an education column

educ_col

The column name of to the education column in the tidycensus dataframe

new_educ

The name of the new column containing the recoded education values; by edfault, educ_recode

Value

A dataframe with a recoded education column with shorter names


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