load_billion_data | R Documentation |
load_billion_data()
provides access to the raw inputs to the Billions stored
within the World Health Data Hub or the World Health Organization's xMart4 database.
By default, it filters the loaded data to take the most recently uploaded data
for each indicator, country, and year. The user can also specify to take the
latest data before a certain time period, or to extract all data from the database.
load_billion_data(
data_type = c("wrangled_data", "projected_data", "final_data"),
billion = c("all", "hep", "hpop", "uhc"),
ind_codes = "all",
version = "latest",
na_rm = TRUE,
experiment = NULL,
silent = TRUE,
data_source = c("whdh", "xmart"),
...
)
data_type |
(string) The type of data to load.
|
billion |
(string) One of "all" (default), "hep", "hpop", or "uhc". If "all", downloads all indicators for all three billions. |
ind_codes |
(character vector) The name of the indicator (or indicators) to load data for.
If |
version |
(string) Either
|
na_rm |
(logical) Specifies whether to filter the data to only rows
where |
experiment |
(string) Either
|
silent |
(logical) Specifies whether to show authentication messages and
a download progress bar. Defaults to |
data_source |
(string) Ether "whdh" or "xmart". Indicates where to download the data from |
... |
Additional arguments passed to |
This function requires that the user have the xmart4 and whdh packages installed and setup to access the data. For quetions about getting the relevant permissions, please contact kanjim@who.int or messeillere@who.int.
A data frame.
Other access_data:
load_billion_data_legacy()
,
load_billion_data_whdh()
,
load_billion_data_xmart()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.