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

Micro region Litoral Sul in read_micro_region #247

Open
enoch26 opened this issue Jun 5, 2021 · 3 comments
Open

Micro region Litoral Sul in read_micro_region #247

enoch26 opened this issue Jun 5, 2021 · 3 comments
Labels

Comments

@enoch26
Copy link

enoch26 commented Jun 5, 2021

Hi,

There seems to be a bug in the read_micro_region. There are two separate microregion named Litoral Sul, one in Rio Grande do Norte and another one in Paraiba. The one in Rio Grande do Norte is misgrouped to Paraiba.

I have fixed the sf object and named it as nc_miclean in attached RData.

Many thanks,
Man Ho
litoralsul.zip

@rafapereirabr
Copy link
Member

Hi @enoch26 . Thanks for the heads up. Indeed, the code_micro of the 'Litoral Sul' micro region in Rio Grande do Norte should be 24019. We will be fixing this soon.

library(geobr)
library(mapview)
library(magrittr)

m2010 <- read_micro_region(year=2010)
m2015 <- read_micro_region(year=2015)

subset(m2010, name_micro=='Litoral Sul') %>% mapview()
subset(m2015, name_micro=='Litoral Sul') %>% mapview()

@enoch26
Copy link
Author

enoch26 commented Jun 5, 2021

Hi @rafapereirabr,

Thanks for the update. I have fixed that in the attached litoralsul.R. See if that's useful for you.

Cheers,
MH

@enoch26 enoch26 closed this as completed Jun 5, 2021
@rafapereirabr
Copy link
Member

Thanks for the file, @enoch26 , but we need to fix this in the code we use to generate the data set in order to garantee full reproducibility of the code /data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants