Skip to content

A problem about download stock data from yahoo

3 messages · Joshua Ulrich, zhucai4

#
I've never heard of the "yahoo.get.hist.quote" function, though its
documentation says it's in tseries (which it isn't).  Though
tseries::get.hist.quote does exist.

I would recommend using quantmod's getSymbols function:
library(quantmod)
x <- getSymbols("0012.HK",auto.assign=FALSE)

Please note that you must turn off auto assignment because "0012.HK"
is an illegal object name because it starts with a number.

HTH,
Josh
--
http://www.fosstrading.com
On Thu, Jan 21, 2010 at 1:32 AM, zhucai4 <zhucai4 at gmail.com> wrote: