[R-SIG-Finance] [quantmod] setSymbolLookup in a loop
anass.mouhsine at gmail.com
Wed Jul 21 17:42:25 CEST 2010
I have a list of stocks in a variable e.g. l = c("MSFT","IBM")
using a loop, I would like to use each stock symbol in the function
to be more specific, I know how to use the function setSymbolLookup from
the R prompt for one symbol e.g. setSymbolLookup(MSFT=list(src='yahoo')).
What I want now is ,within a loop, use this function
for(i in index(l))
the problem is in the l[i] wtihin the function.
I woulk to have MSFT as a symbol rather than the variable t.
How could I solve my problem?
thanks in advance,
More information about the R-SIG-Finance