Comments (2)
Hi @jvbatista1 , thank you for opening this issue !
Indeed, I just checked the data it looks like there is an error in the code_muni
column (reprex below). I will have a closer look at this in the next few weeks.
library(censobr)
library(dplyr)
census1991_2 <- censobr::read_population(year = 1991)
df <- census1991_2 |>
select(code_muni) |>
mutate(code_muni = as.numeric(code_muni)) |>
collect()
summary(df$code_muni)
#> Min. 1st Qu. Median Mean 3rd Qu. Max. NA's
#> 1710508 2930808 3519600 3395935 3550308 5222054 8575800
from censobr.
Hi @jvbatista1. Thanks for your patience. I have now fixed the 1991 population and household data sets. To make sure you use the updated version, please delete the old files from your cache with the following code:
clean 1991 data sets from the cache:
library(censobr)
library(dplyr)
censobr::censobr_cache(delete_file = '1991_population')
censobr::censobr_cache(delete_file = '1991_household')
check whether see the issue is now gone:
df <- censobr::read_households(year = 1991)
df |>
select(code_muni) |>
mutate(test = is.na(code_muni)) |>
count(test) |>
collect()
df2 <- censobr::read_population(year = 1991)
df2 |>
select(code_muni) |>
mutate(test = is.na(code_muni)) |>
count(test) |>
collect()
from censobr.
Related Issues (20)
- Add Interview manual
- Add questionnaires
- Add labels to microdata in year 1991
- Add labels to microdata in year 1980
- Add labels to microdata in year 1970
- Add data dictionary of microdata in year 1991 HOT 3
- v0.2.0 on CRAN
- add merge_households parameter HOT 2
- Add 1960 Census data HOT 1
- Harmonize variables across censuses
- New function for Complex Survey Design Object HOT 1
- Add parameter `geometry` to function `read_tracts()`
- update files of 2010 census tract data - Goias
- Censo 2022 HOT 1
- New vignette showing how to work with larger-than-memory data
- Add tract-level data of the 2000 census
- Variáveis presente no dicionário de dados HOT 10
- Problema no dicionário households HOT 2
- error in macOS: IOException
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from censobr.