I want to download data series for the same indicator for different countries, from an online database called Quandl. I can use the same URL for each request, but I only need to change the country code.
The code below does not work, could someone help me with the right R code?
This is my first question on stackoverflow, apologies if I am not up to par yet with all stackoverflow rules. I have tried searching for an answer using google etc. No succes so far...
install.packages("Quandl")
library(Quandl)
x.df <- data.frame(x)
countries <- c("BE", "ESP")
for(i in countries){
temp.df <- Quandl("AMECO/", i, "_1_0_319_0_UBLGAPS", start_date = "1995-12-30", collapse = "annual")
x.df <- merge(x.df, temp.df, all=TRUE)
}
I get this error message:
Error in match.arg(transform) :
'arg' should be one of “”, “diff”, “rdiff”, “normalize”, “cumul”, “rdiff_from”