README.md

datasus

CRAN_Status_Badge CRAC_Downloads

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

Installation

Install the release version from CRAN:

install.packages("datasus")

or the development version from github

# install.packages("devtools")
devtools::install_github("rpradosiqueira/datasus")

Example

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".



Try the datasus package in your browser

Any scripts or data that you put into this service are public.

datasus documentation built on June 10, 2019, 1:02 a.m.