-
Notifications
You must be signed in to change notification settings - Fork 10
/
README.Rmd
41 lines (28 loc) · 1.36 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
# datasus
[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/datasus)](https://CRAN.R-project.org/package=datasus)
[![CRAC_Downloads](https://cranlogs.r-pkg.org/badges/grand-total/datasus)](https://CRAN.R-project.org/package=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:
```{r , eval = FALSE}
install.packages("datasus")
```
or the development version from github
```{r , eval = FALSE}
# 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:
```{r, eval = FALSE}
sim_obt10_mun(linha = "Microrregião IBGE",
coluna = "Capítulo CID-10")
```
To more examples, see the vignette ["Introduction to datasus"](https://CRAN.R-project.org/package=datasus/vignettes/Introduction_to_datasus.html).