| codes {passport} | R Documentation |
Country code and name details and documentation
Description
A codebook data.frame of codes and details for country code and name
conversions available. Contains
Internet Engineering Task Force (IETF) language tags
(e.g. "en-nz" for New Zealand English) for
Unicode Common Locale Data Repository (CLDR) names,
similar approximations for institutional names (e.g. "en-iso"), and short
names (e.g. "iso2c") for country codes.
Usage
codes
Format
A data.frame of 427 rows and 9 variables.
Variables:
columnThe column name in the internal
passport:::countriesdata.frame. Valid for use infromandtoparameters.codecolumnwith hyphens for underscores, which is a valid IANA language tag for Unicode CLDR country names. Valid for use infromandtoparameters.nameFull name or code name for non-CLDR options.
notesThings to note, including deprecations, oddities, etc.
languageFull language name parsed from
code.regionFull country or region name parsed from
code.scriptFull language script name parsed from
code.variantFull variant parsed from
code. Also used for organization-standardized names.extensionFurther specification of name type.
Details
All functions can accept codes separated with underscores _, hyphens -,
or periods ..
Examples
# A searchable widget to find a code or name
if (requireNamespace("DT", quietly = TRUE)) {
DT::datatable(codes)
}