Coder Social home page Coder Social logo

Comments (2)

rafapereirabr avatar rafapereirabr commented on July 25, 2024

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.

rafapereirabr avatar rafapereirabr commented on July 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.