Learn R Programming

Giza (version 1.0)

getcode: getcode Function

Description

Extract the UN country code for a given country

Usage

getcode(cname, dictionary)

Arguments

cname
... any country name in dictionary
dictionary
... see data(dictionary)

Value

the UN country-code for the country in question

Details

``inverse'' of getname function

See Also

getname

Examples

Run this code
data(dictionary)
getcode("China",dictionary)

Run the code above in your browser using DataLab