hrbrmstr / albersusa

Tools, shapefiles & data to work with an "AlbersUSA" composite projection in R
Other
77 stars 16 forks source link

Metro areas? #12

Open tiernanmartin opened 7 years ago

tiernanmartin commented 7 years ago

Is there a plan to include a US Metro Areas sf object?

sctyner commented 4 years ago

You can do this pretty easily with the tigris + sf packages.

# install.packages("tigris")
library(tigris)
library(dplyr)
library(sf)
urban <- urban_areas(cb = T, year = 2018)
urban_sf <- st_as_sf(urban)
metro_areas <- filter(urban_sf, UATYP10 == "U")

According to the Census, I think the UAs are what you're looking for! Now if only we could mutate census areas onto the shifted Alaska-Hawaii areas. (That's why I'm lurking here.)

tiernanmartin commented 4 years ago

You and I are after the same thing.