Skip to content
Back to formatted view

Raw Message

Message-ID: <1352614625209-4649227.post@n4.nabble.com>
Date: 2012-11-11T06:17:05Z
From: dae
Subject: For loop question
In-Reply-To: <C858EDF8-1B80-4087-B6C8-EBEFCF0F3AE1@comcast.net>

Thanks.  That got me the answer.  This works:

symbols = c("IEF","SPY")

getSymbols(symbols)

for(symbol in symbols) { 
        assign(symbol, to.monthly(get(symbol), indexAt="endof")) 
   } 
 
#end



--
View this message in context: http://r.789695.n4.nabble.com/For-loop-question-tp4649215p4649227.html
Sent from the R help mailing list archive at Nabble.com.