imf_codelist: Fetch an IMF codelist

View source: R/structure.R

imf_codelistR Documentation

Fetch an IMF codelist

Description

Download a codelist (the valid codes and labels for a dimension), for example the country list or an indicator list, as a tidy data frame.

Usage

imf_codelist(id, agency = "IMF", version = "+")

Arguments

id

Codelist id, for example "CL_COUNTRY" or "CL_WEO_INDICATOR".

agency

Owning agency. Most shared codelists are "IMF"; some belong to a department, for example "IMF.RES" for WEO codelists.

version

Codelist version; "+" (the default) requests the latest.

Value

A data frame with columns code and label.

Examples


imf_codelist("CL_WEO_INDICATOR", agency = "IMF.RES")


readimf documentation built on June 15, 2026, 5:07 p.m.