upload_billion_data | R Documentation |
upload_billion_data()
allows you to easily upload a data frame to the correct
location in the World Health Data Hub. By default, it appends the current
timestamp to the file name, but it can also accept a timestamp specified by the
user.
upload_billion_data(
df,
data_type = c("wrangled_data", "projected_data", "final_data"),
billion = c("hep", "hpop", "uhc"),
ind_code,
version = whdh::get_formatted_timestamp(),
na_rm = TRUE,
experiment = NULL,
silent = TRUE,
retry_upload = TRUE,
max_upload_retries = 3,
upload_retry_interval = 3
)
df |
(data.frame) A data frame |
data_type |
(string) The type of data to load.
|
billion |
(string) One of "hep", "hpop", or "uhc". Ignored when
|
ind_code |
(string) The name of the indicator to upload data
for. Ignored when |
version |
A |
na_rm |
(logical) Specifies whether to remove rows where |
experiment |
(string) Either
|
silent |
(logical) Specifies whether to show authentication messages and
a progress bar. Defaults to |
retry_upload |
(logical) Retry the upload request to WHDH. |
max_upload_retries |
(integer) Maximum number of times to retry upload to WHDH. Defaults to |
upload_retry_interval |
(integer) Amount of time in seconds to wait before retrying upload to WHDH. Defaults to |
This function requires that the user to have the whdh package 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. Note that this is the modified version of in the input
the function (such as from removing empty rows when na_rm = TRUE
or from
the call to save_wrangled_output()
) are carried over to the output.
Functions to load data from data lake
load_misc_data()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.