load_datasus | R Documentation |
Loads DATASUS data on health establishments, mortality, access to health services and several health indicators.
load_datasus(
dataset,
time_period,
states = "all",
raw_data = FALSE,
keep_all = FALSE,
language = "eng"
)
dataset |
A dataset name, can be one of ("datasus_sim_do", "datasus_sih", "datasus_cnes_lt", "datasus_sinasc), or more. For more details, try |
time_period |
A |
states |
A |
raw_data |
A |
keep_all |
A |
language |
A |
A tibble
.
## Not run:
# download raw data for the year 2010 in the state of AM.
data <- load_datasus(
dataset = "datasus_sim_do",
time_period = 2010,
states = "AM",
raw_data = TRUE
)
# download treated data with the number of deaths by cause in AM and PA.
data <- load_datasus(
dataset = "datasus_sim_do",
time_period = 2010,
states = c("AM", "PA"),
raw_data = FALSE
)
# download treated data with the number of deaths by cause in AM and PA
# keeping all individual variables.
data <- load_datasus(
dataset = "datasus_sim_do",
time_period = 2010,
states = c("AM", "PA"),
raw_data = FALSE,
keep_all = TRUE
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.