# 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
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
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
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
# 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
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 :)
-
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:
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
8 matches
Mail list logo