Hello, everyone:

I try to download the history data for a hongkong stock:0012.HK, using "yahoo.get.hist.quote", when I type the code:
> library("UsingR")
> instrument<-"0012.HK"
> destfile<-"Henderson.csv"
> yahoo.get.hist.quote(instrument,destfile,start=2008-1-1,end=2010-1-1,
+ quote="Close",download=TRUE,adjusted=TRUE,origin="1970-01-01", compression="d")

there is an error message:
Error in as.POSIXct.numeric(start, tz = "GMT") : 'origin' must be supplied

I also try origin="1899-12-30", but the error message is still there.

Did anyone encounter with this problem before ? Thank you very much for the help!

 

	[[alternative HTML version deleted]]

