Learn R Programming

FAOSTAT (version 1.6)

translateCountryCode: A function to translate between different country coding systems

Description

The function translate any country code scheme to another if both are in the FAOcountryProfile

Usage

translateCountryCode(data, from, to, oldCode)

Arguments

data
The data frame
from
The name of the old coding system
to
The name of the new coding system
oldCode
The column name of the old country coding scheme