[R] How download Yahoo Quote?

Yumin zpxykm at gmail.com
Sun Aug 28 00:23:17 CEST 2011


   Hi  Michael:

   I installed:  install. packages("quantmod") and now it accept
library(quantmod) sentence. BUT after input:

 *                     con <- url("http://quote.yahoo.com") 
                     if(!inherits(try(open(con), silent = TRUE),
"try-error")) 
                     { 
                        close(con) 

                         x <- get.hist.quote(instrument = "ibm", quote =
c("Cl", 
                                                                         
"Vol")) 
                           plot(x, main = "International Business Machines
Corp") 
                    }*

The result is the same:

 *            Warning message:
                      In open.connection(con) : too many redirects, aborting
...*


     ps: the 1st line of my code is:
                 library(quantmod)     

--
View this message in context: http://r.789695.n4.nabble.com/How-download-Yahoo-Quote-tp3769563p3773771.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list