Displaying 1 result from an estimated 1 matches for "tickerlist".
Did you mean:
pickedlist
2017 Aug 02
1
Looping Through QuantMod Objects
...rame(CashT)
Cashdf$tic<-"MSFT"
MSFT.c<-Cashdf
BigCash<-rbind(AAPL.c, IBM.c, MSFT.c)
#setwd<-("C:/Users/HP USER/Documents")
#write.csv(BigCash,file="CashList.csv")
When I try to process through this using a loop, however, things go south
pretty quickly.
tickerlist<-ls(pattern="^[A-Z]+\\.f")
for( i in 1:1)
{
test<-get(paste0(tickerlist[i],"$BS$Q"))
}
Error in get(paste0(tickerlist[i], "$BS$Q")) :
object 'AAPL.f$BS$Q' not found
So I tried to break it up into smaller steps, but the resulting matrix
seems to have...