This function can be used to create a column that flags records as either urban or rural.
Name of column with MSA categories - i.e. M1, M2. should be LSAD
Column/vector with latitude
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.
a new column with markers for Rural or Urban
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.