Re: [R] Getting objects from quantmod ticker list

2012-07-15 Thread Cren
# Thank you, Michael: it works fine! -- View this message in context: http://r.789695.n4.nabble.com/Getting-objects-from-quantmod-ticker-list-tp4635708p4636440.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailin

Re: [R] Getting objects from quantmod ticker list

2012-07-11 Thread R. Michael Weylandt
On Wed, Jul 11, 2012 at 3:08 PM, R. Michael Weylandt wrote: > On Wed, Jul 11, 2012 at 3:07 PM, R. Michael Weylandt > wrote: >> On Wed, Jul 11, 2012 at 1:49 PM, Cren wrote: >>> # One more question, Joshua: let instead of merging tickers >>> # I would like to put prices from an OHLC object >>> # i

Re: [R] Getting objects from quantmod ticker list

2012-07-11 Thread R. Michael Weylandt
On Wed, Jul 11, 2012 at 3:07 PM, R. Michael Weylandt wrote: > On Wed, Jul 11, 2012 at 1:49 PM, Cren wrote: >> # One more question, Joshua: let instead of merging tickers >> # I would like to put prices from an OHLC object >> # in weekly format, then selecting just the close prices. >> # What woul

Re: [R] Getting objects from quantmod ticker list

2012-07-11 Thread R. Michael Weylandt
On Wed, Jul 11, 2012 at 1:49 PM, Cren wrote: > # One more question, Joshua: let instead of merging tickers > # I would like to put prices from an OHLC object > # in weekly format, then selecting just the close prices. > # What would be a code to do it? > # I guess: > > data = new.env() > ticker.li

Re: [R] Getting objects from quantmod ticker list

2012-07-11 Thread Cren
# One more question, Joshua: let instead of merging tickers # I would like to put prices from an OHLC object # in weekly format, then selecting just the close prices. # What would be a code to do it? # I guess: data = new.env() ticker.list <- c('SPY', 'TLT', 'GLD') getSymbols(ticker.list, env = da

Re: [R] Getting objects from quantmod ticker list

2012-07-07 Thread Cren
Joshua Ulrich wrote > > Load the data into an environment, then merge them using do.call(): > > series.env <- new.env() > getSymbols(ticker.list, src='FRED', env=series.env) > series <- do.call(merge, as.list(series.env)) > > Thank you very much, Joshua: this works very well! Thank you :) -

Re: [R] Getting objects from quantmod ticker list

2012-07-07 Thread Joshua Ulrich
Load the data into an environment, then merge them using do.call(): series.env <- new.env() getSymbols(ticker.list, src='FRED', env=series.env) series <- do.call(merge, as.list(series.env)) HTH, -- Joshua Ulrich | FOSS Trading: www.fosstrading.com On Sat, Jul 7, 2012 at 7:00 AM, Cren wrote:

[R] Getting objects from quantmod ticker list

2012-07-07 Thread Cren
Hi all, I would need to put datas downloaded with quantmod into a matrix or a data frame. Suppose to start from here: *require(quantmod) ticker.list <- c('AAA', 'ALTSALES','AMBNS','AMBSL','BAA', 'EMRATIO', 'FEDFUNDS', 'GASPRICE', 'GS1', 'GS10', 'GS20', 'LNS141000