GetCountryTag: Extracts the country subtags from a list of language tags

View source: R/LanguageCodes.R

GetCountryTagR Documentation

Extracts the country subtags from a list of language tags

Description

Extracts the country subtags from a list of language tags

Usage

GetCountryTag(Code)

Arguments

Code

A code as string in the format "xx-XX" or just "xx".

Value

the second subtag(s) extracted from the given codes. If a country code is missing the function uses NA.

Note

The function does not verify if the country code exists


SigurdJanson/shinyCSVImpoMod documentation built on Jan. 5, 2023, 3:57 a.m.