This is a convenience function that looks up the relevant metadata for one or more indicators in the indicator_df table.
Usage
get_ind_metadata(ind_codes, metadata_col = names(billionaiRe::indicator_df))
Arguments
- ind_codes
A character vector with indicator (analysis) codes
- metadata_col
The name of the indicator_df column with the desired metadata.
Value
A character vector with the metadata. The positions correspond to the order of the ind_codes input.
See also
Functions to access metadata
billion_ind_codes()
,
convert_ind_codes()
,
get_country_shares()
,
get_ind_billion()
,
get_sdi_ratio()
,
indicator_df
Examples
# Find the gho_code for UHC Tobacco
get_ind_metadata("uhc_tobacco", "gho_code")
#> [1] "M_Est_tob_curr_std"
# Find the indicator type for multiple indicators
get_ind_metadata(c("alcohol", "hwf"), "ind_type")
#> [1] "unproj_data" "proj_data"