acscodes_df: ACS code lookup table

acscodes_dfR Documentation

ACS code lookup table

Description

A tidy dataframe where each row is a ACS code. This is useful internal data to give meaning to variable codes e.g. acscodes_age_sex_educ

Usage

acscodes_df

Format

A data frame with 22,134 rows where each row represents a variable in the ACS for which there is a count (e.g. 18-24 year olds who identify as Hispanic).

variable

the ACS code for the variable (2016)

table

the ACS table the variable is in (2016)

gender

A labelled variable for gender. 1 is Male, 2 is Female. Use the labelled or haven package to see labels.

female

A numeric, binary version of gender

age_5

A labelled variable specifying which 5-way age bin the variable specifies

age_10

A labelled variable specifying which 10-way age bin the variable specifies

educ

A labelled variable specifying which education (four-way) bin the variable specifies

educ_3

A labelled variable specifying which education (three-way) bin the variable specifies

race

A labelled variable specifying which education bin the variable specifies

Details

The 5-yr ACS at 2018 is used, although codes should be fairly consistent across time. IF a demographic variable is NA, that means the variable collapses over the levels of that variable. In other words, NA here can be thought of as meaning "all".

Source

Modifications around tidycensus::load_variables

Examples

 head(acscodes_df)


kuriwaki/ccesMRPprep documentation built on July 27, 2023, 3:34 a.m.