Downloading the Full IDS Data"

library(wbids)

The wbids package provides two ways to download the complete International Debt Statistics (IDS) dataset.

With ids_bulk(), you need to download and combine multiple Excel files:

# Step 1: Get list of available files
files <- ids_bulk_files()

# Step 2: Download each file
data_list <- lapply(files$file_url, ids_bulk)

# Step 3: Combine all data
full_data <- rbind(data_list)

With ids_get_ed(), you get everything in one step:

full_data <- ids_get_ed("debt_statistics")

The ids_get_ed() function is faster because:

For most use cases, ids_get_ed() is the recommended approach due to its simplicity and performance benefits.



Try the wbids package in your browser

Any scripts or data that you put into this service are public.

wbids documentation built on Dec. 20, 2025, 9:06 a.m.