Hi,
The lapply / apply should look something like this
sapply(1:10, USE.NAMES = TRUE, simplify = FALSE, FUN = function(i) {
GetRemoteData(source="EQ",v.ids = v.ids,
fromDate = fromDateDP, toDate = toDateDP,
l.eqPars = "days-ahead" = i)
})
I did it with sapply (see ?sapply)
PS: in your while loop you start at days-ahead 0 and not 1