Learn R Programming

datasus

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

Copy Link

Version

Install

install.packages('datasus')

Monthly Downloads

21

Version

0.4.1.1

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Renato Prado Siqueira

Last Published

June 9th, 2019

Functions in datasus (0.4.1.1)

sim_evita10_bruf

Scrapes SIM's ICD-10 evitale causes data from regions
sim_evita10_mun

Scrapes SIM's ICD-10 evitable causes data from cities
sim_inf10_bruf

Scrapes SIM's ICD-10 child mortality data from regions
sim_obt10_uf

Scrapes SIM's ICD-10 data from UF's
sim_inf10_mun

Scrapes SIM's ICD-10 child mortality data from cities
sim_obt10_mun

Scrapes SIM's ICD-10 data from cities
sinasc_nv_mun

Scrapes SINASC data from cities
sim_evitb10_mun

Scrapes SIM's ICD-10 evitable causes data from cities
sinasc_nv_bruf

Scrapes SINASC data from regions
sim_evitb10_uf

Scrapes SIM's ICD-10 evitable causes data from ufs
sinasc_nv_uf

Scrapes SINASC data from ufs
sim_evitb10_bruf

Scrapes SIM's ICD-10 evitale causes data from regions
sim_evita10_uf

Scrapes SIM's ICD-10 evitable causes data from ufs
sim_inf10_uf

Scrapes SIM's ICD-10 child mortality data from ufs
sim_obt10_bruf

Scrapes SIM's ICD-10 data from regions