From @jakobmiethe.bsky.social:
Hi Teal, playing around a bit and it seems the package throws an error if the geographies argument includes a country for which there is no data (for that specific series?). "API Error Code 160" I expected it to return NAs for those countries but return data for the others. Always an issue when working on tax havens that are sometimes independent countries, sometimes not... Is this intentional? Best, Jakob
I asked for example code, and he provided it:
plotdata <- ids_get(
geographies = "FRA",
series = c("FI.RES.TOTL.DT.ZS"),
# counterparts = "all",
start_date = 1970,
end_date = 2023
)
I guess if I write: plotdata <- ids_get(
geographies = c("VUT","FRA"),
series = c("FI.RES.TOTL.DT.ZS"),
# counterparts = "all",
start_date = 1970,
end_date = 2023
)
I'd expect to get the data for VUT with NAs for FRA but not a break