create_urban_type: Create Categories of Urban Records

Description Usage Arguments Details Value

Description

This function can be used to create a column that categorizes records based on urban population size

Usage

1
create_urban_type(MSA_pop, Boolean_Urban_MSA)

Arguments

MSA_pop

Column with population of the MSA. Make sure to manually add in NECTA pop as well.

Boolean_Urban_MSA

column with rural/urban marker

Details

It requires that the dataset already has a rural/urban marker, and that it has a second column with MSA and NECTA population data - should be downloaded and appended from the Census, and matched based on CBSA and NECTA ids.

Note, caution should be exercised with international records, they are defaulted to "rural" since they will not match a MSA. After adding rural/urban a international record flag should be used to subset the data.

Value

a new column with categories for type of urban area


gmellon/neaR documentation built on May 14, 2019, 2:42 p.m.