create_boolean_urban: Create Rural/Urban Identifier

Description Usage Arguments Details Value

Description

This function can be used to create a column that flags records as either urban or rural.

Usage

1
create_boolean_urban(MSA_category, Latitude)

Arguments

MSA_category

Name of column with MSA categories - i.e. M1, M2. should be LSAD

Latitude

Column/vector with latitude

Details

Urban records are records that fall into a Metropolitan or Metropolitan NECTA statistical area. As a result, MSAs will need to be appended to the data before this function is utilized. Records not falling into these MSAs are classified as rural. Records without valid Lat/Long will result in NAs

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 markers for Rural or Urban


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