Skip to content

Instantly share code, notes, and snippets.

@walkerke
Last active February 23, 2018 16:20
Show Gist options
  • Save walkerke/cb5ea3e6d103c1f28427e078ccb56501 to your computer and use it in GitHub Desktop.
Save walkerke/cb5ea3e6d103c1f28427e078ccb56501 to your computer and use it in GitHub Desktop.
library(tigris)
library(tidyverse)
options(tigris_use_cache = TRUE)
st <- c(state.abb, "DC")
alltracts <- map(st, function(x) {
tracts(state = x, cb = TRUE, class = "sf")
}) %>%
rbind_tigris()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment