I am downloading the Bovespa stock data for the quantmod
package.
However, I still do not know why, in the data from Santander (SANB11) the getSymbols
function of the package is giving problem and the loop for execution. Is there a way to make the loop continue to execute even when a loop step failed?
library(quantmod)
tickers<-c("OIBR4.SA", "PCAR4.SA", "PDGR3.SA", "PETR3.SA", "PETR4.SA", "RENT3.SA",
"RSID3.SA", "SANB11.SA", "SBSP3.SA", "SUZB5.SA", "TIMP3.SA",
"TRPL4.SA", "UGPA3.SA", "USIM3.SA", "USIM5.SA", "VAGR3.SA", "VALE3.SA",
"VALE5.SA", "VIVT4.SA")
for (i in tickers){
getSymbols(i,src="yahoo")
}