Created
June 1, 2013 19:38
-
-
Save tota/5691501 to your computer and use it in GitHub Desktop.
- Fix the result of xmlRoot because of changing the layout in table.yahoo.co.jp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- R/quoteStockTsData.R.orig 2011-03-24 23:34:43.000000000 +0900 | |
+++ R/quoteStockTsData.R 2013-06-02 04:03:12.000000000 +0900 | |
@@ -56,7 +56,7 @@ | |
try( r <- xmlRoot(htmlTreeParse(quote.url,error=xmlErrorCumulator(immediate=F))), TRUE) | |
if( is.null(r) ) stop(paste("Can not access :", quote.url)) | |
- try( quote.table <- r[[2]][[1]][[1]][[16]][[1]][[1]][[1]][[4]][[1]][[1]][[1]], TRUE ) | |
+ try( quote.table <- r[[2]][[1]][[1]][[13]][[1]][[1]][[1]][[4]][[1]][[1]][[1]], TRUE ) | |
# | |
if( is.null(quote.table) ){ | |
if( is.null(financial.data) ){ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment