get_area_name: Get area description from vector of area codes

View source: R/wgsrpd3_code_mapping.R

get_area_nameR Documentation

Get area description from vector of area codes

Description

Get area description from vector of area codes

Usage

get_area_name(area_codes)

Arguments

area_codes

Character vector containing the set of codes to be mapped to a name.

Details

Usually used as an inverse function for get_wgsrpd3_codes. Useful for condensing sets of codes for e.g. file names, plotting and table formatting.

Value

Character. Either a vector of length one, with a name for the set of Level 3 areas, or (if no name exists for that set of areas) the input vector of codes.

Examples

get_area_name(get_wgsrpd3_codes("Brazil"))

rWCVP documentation built on Feb. 16, 2023, 8:30 p.m.