get_location_code: Get WPP 2019 country codes from country names

View source: R/wpp_fetch.R

get_location_codeR Documentation

Get WPP 2019 country codes from country names

Description

Provides the list of countries and respective codes available in WPP 2019 or fetch the country code for given country name

Usage

get_location_code(location_names = NULL)

Arguments

location_names

location name or vector of location names

Value

WPP 2019 'location_code' for given location names

Examples

# provides all location codes
get_location_code()

# provides location codes for a given list of countries
names <- c('Brazil','Argentina','Uruguay','Paraguay')
get_location_code( names )


josehcms/fertestr documentation built on Oct. 9, 2024, 9:03 p.m.