Description Usage Arguments Value See Also Examples
View source: R/search_data_dict.R
Searches the WHO data dictionary for TB burden data. When run for the first time
it will download the data dictionary, if download_data = TRUE
, and save it into the temporary
1 2 3 4 5 6 7 8 9 10 11 |
var |
A character vector of variable names. |
def |
A character vector of terms to use to search the variable definitions for partial matches. |
dataset |
A character vector of terms to use to search the dataset names for partial matches. |
dict |
A tibble of the data dictionary. See |
download_data |
Logical, defaults to |
save |
Logical, should the data be saved for reuse during the current R session. Defaults to
|
dict_save_name |
Character string, name to save dictionary under. This argument is depreciated and will be removed from future releases. Dataset naming is now handled internally. |
verbose |
Logical, defaults to |
... |
Additional parameters to pass to |
A tibble containing the information in the data dictionary matching the variables
searched for. If nothing is found then NULL
is returned.
get_data_dict
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Search for a known variable
## Download and save the dictionary if it is not available locally
search_data_dict(var = "country")
## Search for all variables mentioning mortality in their definition
search_data_dict(def = "mortality")
## Search for all variables in the Estimates dataset.
search_data_dict(dataset = "Estimates")
## Search for both a known variable and for mortality being mentioned in there definition
## Duplicate entries will be omitted.
search_data_dict(var = "e_mort_exc_tbhiv_100k", def = "mortality")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.