wdi_get_lending_types {wbwdi}R Documentation

Download lending types from the World Bank API

Description

This function returns a tibble of supported lending types for querying the World Bank API. The lending types classify countries based on the financial terms available to them from the World Bank.

Usage

wdi_get_lending_types(language = "en")

Arguments

language

A character string specifying the language code for the API response (default is "en" for English).

Details

This function provides a reference for the supported lending types, which classify countries according to the financial terms they are eligible for under World Bank programs. The language parameter allows the results to be returned in different languages as supported by the API.

Value

A tibble with columns that typically include:

lending_type_id

An integer for the lending type.

lending_type_iso2code

A character string for the ISO2 code of the lending type.

lending_type_name

A description of the lending type (e.g., "IBRD", "IDA").

Source

https://api.worldbank.org/v2/lendingTypes

Examples


# Download all lending types in English
wdi_get_lending_types()


[Package wbwdi version 1.0.1 Index]