It allows the user to retrieve the data from the systems of DATASUS (SUS IT department related to the Brazilian Ministry of Health, see < http://datasus.saude.gov.br/informacoes-de-saude/tabnet/> for more information) much in the same way that is done in the online portal. For now the package allows access to the SINASC and SIM's (ICD-10) systems, that is, the 'Estatísticas Vitais'.
The "datasus" R package seeks to provide direct access to the data of TABNET/DATASUS within the R environment much in the same way that is done in the online portal. For now the package allows access to the systematic record of mortality and survival data (Vital Statistics - Mortality and Live Births) through SIM and SINASC's systems
Install the release version from CRAN:
or the development version from github
In this example we will download the last mortality data for the IBGE's micro-region where the micro-regions are in the rows and the ICD-10 chapters in the columns:
sim_obt10_mun(linha = "Microrregião IBGE",coluna = "Capítulo CID-10")
To more examples, see the vignette "Introduction to datasus".