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

genx info at genetrix.se
Fri Feb 9 10:53:37 CET 2007


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. 

The error

R> source("OMX.R")
trying URL
'http://chart.yahoo.com/table.csv?s=^OMX&a=2&b=11&c=2005&d=1&e=08&f=2007&g=d&q=q&y=0&z=^OMX&x=.csv'
Content type 'text/csv' length unknown
opened URL
.......... .......... ..
downloaded 22Kb

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


The R snippet

OMX <- get.hist.quote("^OMX",start=(today <- Sys.Date())-735,quote="Cl")
save(OMX, file="OMX.csv")


-- 
View this message in context: http://www.nabble.com/get.hist.quote-tf3199391.html#a8882885
Sent from the Rmetrics mailing list archive at Nabble.com.



More information about the R-SIG-Finance mailing list