data-raw/territories_counties.R

# get state shapefile, tidy, add fips data
territories_counties <- get_shapefile(2016, 'county', '5m') %>%
  tidy(region = "GEOID") %>%
  rename(county_fips = id) %>%
  as_tibble() %>%
  left_join(get_county_fips(), by = "county_fips") %>%
  filter(state_fips %in% c("02", "15", "60", "66", "69", "72", "78"))
UrbanInstitute/uimapr documentation built on Sept. 7, 2019, 10:21 a.m.