Skip to content

yahoo finance into R

5 messages · thomastos, Peter Dalgaard, davidr at rhotrading.com +1 more

#
Hi R, 

I am familiar with the basics of R.
To learn more I would like how to get data from Yahoo!finance directly into
R. So basically I want a data frame or matrix to do some data analysis.
How do I do this?

Thank you very much.

Thomas
#
thomastos wrote:
RSiteSearch("yahoo")

get.hist.quote() from tseries
yahooSeries() from fImport (untried)
#
thanks a lot. i thought it was more difficult.

however i am dissapointed that i get so little data. 

thanks again

thomas
Peter Dalgaard wrote:

  
    
#
Yahoo and OandA provide only daily data, but the history goes back quite a ways:
[1] 5663
That's 22 years of data.
Not sure what you were expecting.

David L. Reiner, PhD
Head Quant
Rho Trading Securities, LLC
-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of thomastos
Sent: Tuesday, September 09, 2008 10:18 PM
To: r-help at r-project.org
Subject: Re: [R] yahoo finance into R


thanks a lot. i thought it was more difficult.

however i am dissapointed that i get so little data. 

thanks again

thomas
Peter Dalgaard wrote:

  
    
#
Take a look at quantmod.

http://www.quantmod.com http://www.quantmod.com 

?getSymbols.yahoo (called by getSymbols)
?getQuote
?yahooQF
?getFin
?getFX

HTH
Jeff
thomastos wrote: