Skip to content

Instantly share code, notes, and snippets.

@pumphandle
Created July 9, 2019 17:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pumphandle/e921bb3cfc5824be30f959b8b4f4e2d8 to your computer and use it in GitHub Desktop.
Save pumphandle/e921bb3cfc5824be30f959b8b4f4e2d8 to your computer and use it in GitHub Desktop.
Read in ACS block group populations for New York State
library(tidycensus)
census_api_key("your api key here", install=TRUE)
ny <- get_acs(geography = "block group", variables = c(population = "B01003_001"), state="NY")
@pumphandle
Copy link
Author

year=2015 specifies the end year of the 5 year period, defaults to 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment