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/urbnmapr documentation built on Sept. 8, 2019, 10:55 p.m.