Pull the Census Population for All Tracts in America

While you can’t directly do the call in tidycensus, you can do it quite easily with a purrr map() call like this:

map(state.abb, \(x)  get_decennial('tract', state=x, variables = "P1_001N", year = 2020, geometry = T)  ) |> bind_rows() 

Leave a Reply

Your email address will not be published. Required fields are marked *