process_sih: Process SIH variables from DataSUS

View source: R/process_sih.R

process_sihR Documentation

Process SIH variables from DataSUS

Description

process_SIH processes SIH variables retrieved by fetch_datasus().

Usage

process_sih(data, information_system = "SIH-RD", municipality_data = TRUE)

Arguments

data

data.frame created by fetch_datasus().

information_system

string. The abbreviation of the health information system. See Details.

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.

Details

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

Currently, only "SIH-RD" is supported.

Examples

## Not run: 
df <- fetch_datasus(year_start = 2010, month_start = 1,
                    year_end = 2010, month_end = 1,
                    uf = "RJ",
                    information_system = "SIH-RD")
df_a <- process_sih(df)
df_b <- process_sih(df, municipality_data = FALSE)

## End(Not run)

rfsaldanha/microdatasus documentation built on April 13, 2024, 2:25 p.m.