Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

fillCountryCode

A function to get country code when not available in data.


Description

This function can be useful when a dataset provided does not have a country code available.

Usage

fillCountryCode(country, data, outCode = "FAOST_CODE")

Arguments

country

The column name of the data which contains the country name

data

The data frame to be matched

outCode

The output country code system, defaulted to FAO standard.


FAOSTAT

Download Data from the FAOSTAT Database

v2.2.1
GPL (>= 2)
Authors
Michael C. J. Kao <michael.kao@fao.org>, Markus Gesmann, Filippo Gheri
Initial release
2020-11-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.