# \donttest{
# Get total external debt stocks for a single country from 2000 onward
ghana_debt <- ids_get(
entities = "GHA",
series = "DT.DOD.DECT.CD" # External debt stocks, total
)
# Compare debt service metrics across income groups
income_groups <- ids_get(
entities = c("LIC", "LMC", "UMC"), # Income group aggregates
series = "DT.TDS.DECT.CD", # Total debt service
start_year = 2010
)
# Analyze debt composition by major creditors
creditor_analysis <- ids_get(
entities = c("KEN", "ETH"), # Kenya and Ethiopia
series = c(
"DT.DOD.DECT.CD", # Total external debt
"DT.TDS.DECT.CD" # Total debt service
),
counterparts = c(
"WLD", # World total
"730", # China
"907", # IMF
"BND" # Bondholders
),
start_year = 2015
)
# }
Run the code above in your browser using DataLab