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:
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.