get_ind_metadata | R Documentation |
This is a convenience function that looks up the relevant metadata for one or more indicators in the indicator_df table.
get_ind_metadata(ind_codes, metadata_col = names(billionaiRe::indicator_df))
ind_codes |
A character vector with indicator (analysis) codes |
metadata_col |
The name of the indicator_df column with the desired metadata. |
A character vector with the metadata. The positions correspond to the order of the ind_codes input.
Functions to access metadata
billion_ind_codes()
,
convert_ind_codes()
,
get_country_shares()
,
get_ind_billion()
,
get_sdi_ratio()
,
indicator_df
# Find the gho_code for UHC Tobacco
get_ind_metadata("uhc_tobacco", "gho_code")
# Find the indicator type for multiple indicators
get_ind_metadata(c("alcohol", "hwf"), "ind_type")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.