[R-SIG-Finance] get.hist.quote

Kurt Hornik Kurt.Hornik at wu-wien.ac.at
Sun Feb 11 14:04:51 CET 2007


>>>>> Josh Ulrich writes:

>> All of a sudden get.hist.quote cease to function, i switched to zoo after i
>> totally failed to get yahooImport to work. I've been using the below R
>> snippet for weeks without any problems what so ever.

> <snip>

>> Error in if (!quiet && dat[n] != start) cat(format(dat[n], "time series
>> starts %Y-%m-%d\n")) :
>> missing value where TRUE/FALSE needed

> This is because Yahoo recently changed the date format of its CSV files from 
> "%d-%m-%y" to "%Y-%m-%d".  All that needs to be changed in 'get.hist.quote' 
> is this line of code:
> from: dat <- as.Date(dat, "%d-%b-%Y")
> to: dat <- as.Date(dat, "%Y-%m-%d")

Thanks.  Updated version of tseries on CRAN now.

Best
-k



More information about the R-SIG-Finance mailing list