Hi, I've been trying to use the yahooKeystats function from fImport, but I think it may be broken.
yahooKeystats("IBM", try=FALSE)
trying URL 'http://finance.yahoo.com/q/ks?s=IBM' Content type 'text/html; charset=utf-8' length unknown opened URL .......... .......... .......... ... downloaded 33 Kb Read 151 items Error in matrix(unlist(strsplit(x, "@")), byrow = TRUE, ncol = 2) : attempt to set an attribute on NULL I tried to check out the code and the problem is that x is basically empty when it gets passed to matrix(). I think the problem is with this earlier section of code: if (length(Index) > 0) x = x[-Index] I'm not sure what they were trying to do with that code, but this looks like the problem. I was hoping someone could confirm whether yahooKeystats is working or not for them. Thanks, James
sessionInfo()
R version 2.12.1 (2010-12-16) Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit) locale: [1] en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8 attached base packages: [1] graphics grDevices utils datasets stats methods base other attached packages: [1] fImport_2110.79 timeSeries_2130.90 timeDate_2130.91 PerformanceAnalytics_1.0.3.2 [5] quantmod_0.3-15 Defaults_1.1-1 TTR_0.20-2 xts_0.7-5 [9] zoo_1.6-4 loaded via a namespace (and not attached): [1] grid_2.12.1 lattice_0.19-13