|
1 |
| -# ReadDBC |
| 1 | +# DBCDatasus |
2 | 2 |
|
3 |
| -[](https://lego-yaw.github.io/ReadDBC.jl/stable/) |
4 |
| -[](https://lego-yaw.github.io/ReadDBC.jl/dev/) |
5 |
| -[](https://github.com/lego-yaw/ReadDBC.jl/actions/workflows/CI.yml?query=branch%3Amain) |
6 |
| -[](https://codecov.io/gh/lego-yaw/ReadDBC.jl) |
| 3 | +[](https://lego-yaw.github.io/DBCDatasus.jl/stable/) |
| 4 | +[](https://lego-yaw.github.io/DBCDatasus.jl/dev/) |
| 5 | +[](https://github.com/lego-yaw/DBCDatasus.jl/actions/workflows/CI.yml?query=branch%3Amain) |
| 6 | +[](https://codecov.io/gh/lego-yaw/DBCDatasus.jl) |
7 | 7 |
|
8 | 8 |
|
9 | 9 |
|
10 |
| -### ReadDBC.jl |
| 10 | +### DBCDatasus.jl |
11 | 11 | + A simple package for converting *.dbc* (compressed DBC) files from Datasus into *.dbf* (DBF) and *data frames* tables.
|
12 | 12 |
|
13 | 13 | + DATASUS plays a critical role in ensuring the efficient operation of Brazil's public health system. DATASUS is the name of the Departement of informatics of Brazil's health system (Sistema Unico de Saúde-SUS). They are responsible for maintaining and publishing Brazilian public health data. Aside this, the Brazilian National Agency for supplementary Health data (ANS), also use the same file format for storing public health data.
|
|
19 | 19 |
|
20 | 20 | ```Julia-repl
|
21 | 21 | >>> ]
|
22 |
| ->>> add ReadDBC |
| 22 | +>>> add DBCDatasus |
23 | 23 | ```
|
24 | 24 | or
|
25 | 25 |
|
26 | 26 | ```
|
27 | 27 | >>> using Pkg
|
28 |
| ->>> Pkg.add("ReadDBC") |
| 28 | +>>> Pkg.add("DBCDatasus") |
29 | 29 | ```
|
30 | 30 | # Usage
|
31 |
| -+ ReadDBC is simple to use |
| 31 | ++ DBCDatasus is simple to use |
32 | 32 |
|
33 | 33 | ```
|
34 | 34 | # converting dbc to dbf format
|
35 |
| ->>> using ReadDBC |
| 35 | +>>> using DBCDatasus |
36 | 36 | >>> dbctodbc("path/to/file.dbc, path/to/file.dbf) # input file is .dbc file and output file is .dbf
|
37 | 37 |
|
38 | 38 | # converting dbc into dataframe Table
|
39 |
| ->>> using ReadDBC |
| 39 | +>>> using DBCDatasus |
40 | 40 | >>> df = dbcTable("path/to/file.dbc)" # input file is .dbc file and output file is in table format
|
41 | 41 | >>> head(df)
|
42 | 42 |
|
43 | 43 | # Example
|
44 |
| ->>> using Download, using ReadDBC |
| 44 | +>>> using Download, using DBCDatasus |
45 | 45 | >>> download("ftp://ftp.datasus.gov.br/dissemin/publicos/SIASUS/200801_/Dados/ABOAC1909.dbc", "ABOAC1909.dbc") # this link downlaods the ABOAC1909.dbc file from Datasus database.
|
46 | 46 |
|
47 | 47 | # run fucntion
|
|
50 | 50 |
|
51 | 51 | or
|
52 | 52 |
|
53 |
| ->>> using ReadDBC |
| 53 | +>>> using DBCDatasus |
54 | 54 | >>> dbctodbc("ABOAC1909.dbc", "ABOAC1909.dbf") # conversion into DBF format
|
55 | 55 |
|
56 | 56 | ```
|
|
0 commit comments