[R-SIG-Finance] quantmod getSymbols
Khanh Nguyen
knguyen at cs.umb.edu
Fri May 29 22:21:00 CEST 2009
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
More information about the R-SIG-Finance
mailing list