[R-SIG-Finance] quantmod getSymbols

spencerg spencer.graves at prodsyse.com
Sat May 30 05:10:06 CEST 2009


      From, e.g., "http://www.google.com/finance?q=yahoo", I found that 
the NASDAQ stock symbol for Yahoo is "YHOO".  With this info, the 
following read and stored an "xts" object "YHOO": 


getSymbols("YHOO")
str(YHOO)


      Hope this helps. 
      Spencer Graves


Khanh Nguyen wrote:
> Hi,
>
> I downloaded a yahoo.csv file for Yahoo from Yahoo Finance. It has this format
>
> Date,Open,High,Low,Close,Volume,Adj Close
> 2009-05-28,141.65,145.29,139.29,144.65,14803100,144.65
> 2009-05-27,142.22,145.49,140.01,140.01,16696900,140.01
> 2009-05-26,134.61,142.07,134.61,142.05,13768700,142.05
> 2009-05-22,137.78,138.99,136.05,136.35,9058400,136.35
> 2009-05-21,134.05,139.45,133.92,137.16,16135500,137.16
> ...
>
> when I try to read it to quantmod, I got
>
>   
>> getSymbols("yahoo", src="csv")
>>     
> Error in `[.data.frame`(x, indx) : undefined columns selected
>
> What am I missing? Thanks.
>
> -k
>
> _______________________________________________
> R-SIG-Finance at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only.
> -- If you want to post, subscribe first.
>
>



More information about the R-SIG-Finance mailing list