wb_topic: World Bank topic data

View source: R/indicators.R

wb_topicR Documentation

World Bank topic data

Description

List all topics supported by the World Bank API.

Usage

wb_topic(topic = NULL, lang = "en")

Arguments

topic

(NULL | character())
Topic to query. Default NULL. If NULL, all topics are returned.

lang

(character(1))
Language to query. Default "en".

Value

A data.frame() with the available topics. The columns are:

  • id: The topic ID.

  • value: The topic value.

  • source_note: The source note.

Source

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

See Also

Other indicators data: wb_country(), wb_income_level(), wb_indicator(), wb_language(), wb_lending_type(), wb_region(), wb_source()

Examples



topic <- wb_topic()
head(topic)



worldbank documentation built on March 15, 2026, 5:07 p.m.