Commit 47b15d6c authored by Thomas Brand's avatar Thomas Brand

Fix bug with IMF-WEO.

parent 65eddd5b
......@@ -302,11 +302,9 @@ lendingrate_bycountry <-
# Download the 8 countries' PPP GDP from WEO
country_iso <- c("BEL","FRA", "DEU", "ITA", "NLD", "FIN", "IRL", "ESP")
#url_country <- paste0(country_iso, collapse = "+")
#filter <- paste0("PPPGDP.",url_country)
#df <- rdb("IMF-WEO","WEO",mask = filter)
df <- rdb_by_api_link("https://api.next.nomics.world/series?dimensions=%7B%22weo-country%22%3A%5B%22FRA%22%2C%22DEU%22%2C%22ITA%22%2C%22NLD%22%2C%22FIN%22%2C%22IRL%22%2C%22ESP%22%2C%22BEL%22%5D%2C%22weo-subject%22%3A%5B%22PPPGDP%22%5D%7D&provider_code=IMF-WEO&dataset_code=WEO&format=json")
url_country <- paste0(country_iso, collapse = "+")
filter <- paste0(url_country,".PPPGDP")
df <- rdb("IMF-WEO","WEO",mask = filter)
df_country <-
data.frame(country_code,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment