5
I’m downloading Bovespa’s stock data for the package quantmod
.
However, I still do not know why, in the data from Santander (SANB11) the function getSymbols
package is giving problem and loop for execution. There is a way to make the loop continue running even when a loop step gave error?
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")
}