Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add wildcards to get all block or block group data in a state in get_decennial() #316

Closed
mfherman opened this issue Nov 3, 2020 · 2 comments

Comments

@mfherman
Copy link
Collaborator

mfherman commented Nov 3, 2020

Reminded by this question, and it appears that block and block group wildcards now work to allow all blocks or block groups in a state:

https://api.census.gov/data/2000/dec/sf1?get=P001001,NAME&for=block:*&in=state:50&in=county:*&in=tract:*
https://api.census.gov/data/2010/dec/sf1?get=P001001,NAME&for=block%20group:*&in=state:50&in=county:*&in=tract:*

So seems like we can remove some of the logic that iterates through the counties and pulls each block group and simplify with inserting these wildcards instead.

@walkerke
Copy link
Owner

I note that Census has added wildcard support for block groups in the 5-year ACS starting with 2013-2017. I'm going to poke around at this as this would speed things up significantly for state-level block group pulls.

@walkerke
Copy link
Owner

walkerke commented Apr 8, 2021

Got around to this over in #363; still need to clean up some of the old purrr code before merging but I'm glad to get this implemented!

@walkerke walkerke closed this as completed Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants