datazoompuc/datazoom.amazonia

Inconvenience with <LOAD_DATASUS> - <DATASUS>

AntonioBergallo opened this issue · 1 comments

Argument "state" is not filtering correctly

Context

Package was downloades from github via DevTools

Code

data <- load_datasus(dataset = "datasus_sim_do",
                     time_period = c(2020),
                     states = "RJ",
                     raw_data = FALSE)

Goals and Expectations

I was expecting to download mortality data exclusively from Rio, however, it loaded from cities outside the state, such as Manaus and Belém.

The argument states is related to residents of the corresponding state, but the death could occur somewhere else. The columns "code_muni" and "name_muni" are defined based on where the death occured. This is documented in the vignette.