[R] How download Yahoo Quote?
Yumin
zpxykm at gmail.com
Sat Aug 27 22:32:46 CEST 2011
Hi Michael:
I tried to simplify the code, but still failed.
* 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")
}*
It says:
* Warning message:
In open.connection(con) : too many redirects, aborting ...*
The more, it doesn't accept " library(quantmod)" and says:
*Error in library(quantmod) : there is no package called
'quantmod'*
Please help me!
--
View this message in context: http://r.789695.n4.nabble.com/How-download-Yahoo-Quote-tp3769563p3773622.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list