get_ind_metadata: Get metadata for a Triple Billions indicator(s)

View source: R/data_access.R

get_ind_metadataR Documentation

Get metadata for a Triple Billions indicator(s)

Description

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")

# Find the indicator type for multiple indicators
get_ind_metadata(c("alcohol", "hwf"), "ind_type")

gpw13/billionaiRe documentation built on Sept. 27, 2024, 10:05 p.m.