Created
April 14, 2021 15:55
-
-
Save walkerke/ed5a70fb7f3db4de20fdd8f52bdd0d2d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(tidycensus) | |
library(tidyverse) | |
states <- c(state.abb, "DC") | |
us_age_data <- map_df(states, ~{ | |
get_pums( | |
variables = c("PUMA", "AGEP"), | |
state = .x, | |
survey = "acs5", | |
year = 2019 | |
) | |
}) | |
us_age_data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment