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 weighting area column to the 2010 census tracts data #262

Open
andre-al opened this issue Oct 19, 2021 · 1 comment
Open

Add weighting area column to the 2010 census tracts data #262

andre-al opened this issue Oct 19, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@andre-al
Copy link

It would be useful to add the weighting area that each census tract is in to the census tract data, especially since this is a bit buried and hard to find.

You can find it on the Documentação.zip zip file on IBGE's own website, under "Documentação/Áreas de Ponderação/Composição das Áreas de Ponderação.txt", in what is essentially a tsv tabulated format with Weighting Area and Census Tract columns.

There are some encoding issues I didn't try to solve programmatically but you might have to to include it: the whole thing seems to be on UTF-16 and the special characters are broken in my computer. My own-use solution was extracting, navigating the folders with broken names on explorer, opening the file on notepad and Save as with UTF-8 encoding in another folder. Then, readr's read_tsv function reads it normally.

@rafapereirabr
Copy link
Member

Thanks @alcantara-pereira . This is very helpful. Adding the code_weighting column to the census tract data should be fairly simple. We only need to do some filter/merge operations in the prep_census_tract.R script. The prep_census_tract.R script is intended to be fully reproducible, and it basically downloads the original data from IBGE and prepare the data tha we make available through geobr.

I will try to do this next month, but please feel free to suggest the necessary changes in the script and create a pull request.

@rafapereirabr rafapereirabr added the enhancement New feature or request label Oct 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants