Skip to contents

process_sinan_chikungunya processes SINAN Chikungunya variables retrieved by fetch_datasus().

Usage

process_sinan_chikungunya(data, municipality_data = TRUE)

Arguments

data

data.frame created by fetch_datasus().

municipality_data

optional logical. TRUE by default, creates new variables in the dataset informing the full name and other details about the municipality of residence.

Value

a data.frame with the processed data.

Details

This function processes SINAN Chikungunya variables retrieved by fetch_datasus(), informing labels for categoric variables including NA values.

Examples

process_sinan_chikungunya(sinan_chikungunya_sample)
#> # A tibble: 100 × 136
#>    TP_NOT    ID_AGRAVO DT_NOTIFIC SEM_NOT NU_ANO SG_UF_NOT ID_MUNICIP ID_REGIONA
#>    <chr>     <chr>     <chr>      <chr>   <chr>  <chr>     <chr>      <chr>     
#>  1 Individu… A92.0     2022-01-08 202201  2022   Acre      120033     1941      
#>  2 Individu… A92.0     2022-02-16 202207  2022   Acre      120033     1941      
#>  3 Individu… A92.0     2022-01-26 202204  2022   Acre      120033     1941      
#>  4 Individu… A92.0     2022-01-08 202201  2022   Acre      120033     1941      
#>  5 Individu… A92.0     2022-01-26 202204  2022   Acre      120033     1941      
#>  6 Individu… A92.0     2022-01-05 202201  2022   Acre      120033     1941      
#>  7 Individu… A92.0     2022-12-30 202252  2022   Acre      120020     1941      
#>  8 Individu… A92.0     2022-11-14 202246  2022   Acre      120020     1941      
#>  9 Individu… A92.0     2022-05-19 202220  2022   Acre      120020     1941      
#> 10 Individu… A92.0     2022-01-31 202205  2022   Acre      120020     1941      
#> # ℹ 90 more rows
#> # ℹ 128 more variables: ID_UNIDADE <chr>, DT_SIN_PRI <chr>, SEM_PRI <chr>,
#> #   ANO_NASC <chr>, NU_IDADE_N <chr>, CS_SEXO <chr>, CS_GESTANT <chr>,
#> #   CS_RACA <chr>, CS_ESCOL_N <chr>, SG_UF <chr>, ID_MN_RESI <chr>,
#> #   ID_RG_RESI <chr>, ID_PAIS <chr>, DT_INVEST <chr>, ID_OCUPA_N <chr>,
#> #   FEBRE <chr>, MIALGIA <chr>, CEFALEIA <chr>, EXANTEMA <chr>, VOMITO <chr>,
#> #   NAUSEA <chr>, DOR_COSTAS <chr>, CONJUNTVIT <chr>, ARTRITE <chr>, …