Created
July 9, 2019 17:46
-
-
Save pumphandle/e921bb3cfc5824be30f959b8b4f4e2d8 to your computer and use it in GitHub Desktop.
Read in ACS block group populations for New York State
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) | |
census_api_key("your api key here", install=TRUE) | |
ny <- get_acs(geography = "block group", variables = c(population = "B01003_001"), state="NY") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
year=2015 specifies the end year of the 5 year period, defaults to 2017