ipeaGIT / geobr

Easy access to official spatial data sets of Brazil in R and Python
https://ipeagit.github.io/geobr/
786 stars 118 forks source link

read_statistical_grid can't load code_grid #289

Closed tp-duarte closed 2 years ago

tp-duarte commented 2 years ago

Hi there !

I'm trying to load some data from the read_statistical_grid, for th city of São Paulo , and it's retrieving me an error when I put the seven digit code of the city.

> read_statistical_grid(code_grid =3550308)
Using year 2010
Error in read_statistical_grid(code_grid = 3550308) : 
  Error: Invalid Value to argument code_grid

Am I doing an conceptual error of the usability of the function or this code should bring the statistical grid ?

Obs. : It worked just fine when I pulled the statistical grid for the state of São Paulo .

rafapereirabr commented 2 years ago

Hi @tp-duarte . The read_statistical_grid() does not take a code_muni input. I has to be either:

I will update the function documentation to make this clearer;