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

2010 block-level census data #147

Open
ericmanning opened this issue Apr 4, 2024 · 2 comments
Open

2010 block-level census data #147

ericmanning opened this issue Apr 4, 2024 · 2 comments

Comments

@ericmanning
Copy link

ericmanning commented Apr 4, 2024

Thanks for the bug fix for the census tables. Because the correct 2010 tabes for age and sex by race are only available at the tract level and up (the tables' prefix is PCT), requests for all 2010 block-level data yield tables with NAs (and a warning from each API call) after this fix -- even when age and sex args are FALSE. The package should probably (?) throw an error if block-level data is requested and either age OR sex is TRUE.

See, for example, the output of:

get_census_data(states = 'WY', age = F, sex = F, year = '2010', census.geo = 'block', county.list = list('WY' = '017'))

While it's not possible, therefore, to impute race with age and sex conditioning at the block level in the 2010 census, one could still do so at the block level if age and sex args are FALSE. The package would instead have to pull race/ethnicity totals from Table P5 in the 2010 SF1.

@1beb
Copy link
Collaborator

1beb commented May 22, 2024

Thanks for this. I'm not sure what was done for 2010 at the block level. I will have to look at the previous releases to see.

@31YY88
Copy link

31YY88 commented Sep 19, 2024

Hi found myself struggling with the same problem, any update on this?

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

3 participants