-
-
Save dgkeyes/16f14cba42a2996d6cea1d63b7590767 to your computer and use it in GitHub Desktop.
This file contains 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) | |
us_state_pop <- get_acs( | |
geography = "state", | |
year = 2019, | |
variables = c("population" = "B01001_001"), | |
geometry = TRUE) | |
us_state_pop %>% | |
filter(NAME == "Florida") | |
non_contiguous_regions <- c("Alaska", "Hawaii", "Rhode Island", "Puerto Rico") | |
us_contiguous <- us_state_pop %>% | |
filter(!NAME %in% non_contiguous_regions) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment