Can someone please help. I have a list of dataframe that i am trying to download duration data for. Unfortunately the historical data is not avalable, so i have to resort to using the bdp
function. However, this is super slow, and very inefficient. How can i make the code faster? I have tried every known method i could use
for(i in 1:length(AA_securites)){
AA_securites[[i]] <- AA_securites[[i]] %>%
mutate(DUR_MID = map_df(SETTLE_DT, ~ bdp(names(AA_securites)[i], "DUR_MID", overrides = c("SETTLE_DT" = gsub("-", "", .x)))))
}