Description Usage Arguments Value See Also Examples
View source: R/get_tb_burden.R
Get the TB burden data, and multi-drug resistant TB (MDR-TB) data from the WHO, see
here for details. This function will first attempt
to load the data from the temporary directory (tempdir
). If that fails, and download_data = TRUE
, it
will instead download the data. The MDR TB data is only available for the latest year of data.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
url |
Character string, indicating the url of the TB burden data.
Default is current url. This argument is depreciated and will be removed from future releases.
The TB burden URL is now supplied internally - see |
download_data |
Logical, defaults to |
save |
Logical, should the data be saved for reuse during the current R session. Defaults to
|
burden_save_name |
Character string, name to save the data under. This argument is depreciated and will be removed from future releases. Dataset naming is now handled internally. |
add_mdr_data |
Logical, defaults to |
additional_datasets |
A character vector specifying the names of the additional datasets to import.
See |
mdr_save_name |
Character string, name to save the MDR data under. This argument is depreciated and will be removed from future releases. Dataset naming is now handled internally. |
mdr_url |
Character string, indicating the url of the MDR TB data. This argument is depreciated
and will be removed from future releases. The MDR-TB burden URL is now supplied internally -
see |
return |
Logical, should the data be returned as a dataframe.
Defaults to |
verbose |
Logical, defaults to |
use_utils |
Logical, defaults to |
retry_download |
Logical defaults to |
The WHO TB burden data as a tibble.
get_data search_data_dict
1 2 3 4 5 6 7 8 9 | ## Default datasets
tb_burden <- get_tb_burden(additional_datasets = available_datasets$dataset[3])
head(tb_burden)
## Add in the latent TB dataset as an additional dataset (see getTBinR::avaiable_datasets)
tb_with_latents <- get_tb_burden(additional_datasets = available_datasets$dataset[3])
head(tb_with_latents)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.