Re: [R] How download Yahoo Quote?

2011-08-29 Thread Raphael Saldanha
This can be of interest: http://moderntoolmaking.blogspot.com/2011/08/25-more-ways-to-bring-data-into-r.html On Sun, Aug 28, 2011 at 3:00 PM, R. Michael Weylandt < michael.weyla...@gmail.com> wrote: > "I have simplified the code only to download the sp500 index." > > Perhaps you have, but you h

Re: [R] How download Yahoo Quote?

2011-08-28 Thread R. Michael Weylandt
"I have simplified the code only to download the sp500 index." Perhaps you have, but you haven't provided any of that simplified code so I'm a little skeptical. I do have to say though, if you've managed to do it more efficiently than the 12 characters in getSymbols() you are a far better coder t

Re: [R] How download Yahoo Quote?

2011-08-28 Thread Yumin
Hi Michael: I have simplified the code only to download the sp500 index. How to correct this simple codes. -- View this message in context: http://r.789695.n4.nabble.com/How-download-Yahoo-Quote-tp3769563p3774672.html Sent from the R help mailing list archive at Nabble.com. ___

Re: [R] How download Yahoo Quote?

2011-08-27 Thread R. Michael Weylandt
What is wrong with the getSymbols("IBM") command I originally suggested to you? Michael On Sat, Aug 27, 2011 at 6:23 PM, Yumin wrote: > Hi Michael: > > I installed: install. packages("quantmod") and now it accept > library(quantmod) sentence. BUT after input: > > * co

Re: [R] How download Yahoo Quote?

2011-08-27 Thread Yumin
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")) {

Re: [R] How download Yahoo Quote?

2011-08-27 Thread Yumin
- Original Message - From: Yumin [via R] To: Yumin Sent: Saturday, August 27, 2011 3:32 PM Subject: Re: How download Yahoo Quote? Hi Michael: I tried to simplify the code, but still failed. con <- url("http://quote.yahoo.com";) if(!

Re: [R] How download Yahoo Quote?

2011-08-27 Thread R. Michael Weylandt
Did you install the package quantmod? install.packages("quantmod") Michael On Sat, Aug 27, 2011 at 4:32 PM, Yumin wrote: > Hi Michael: > > I tried to simplify the code, but still failed. > > *con <- url("http://quote.yahoo.com";) >if(!inherits(try(open(con), silent

Re: [R] How download Yahoo Quote?

2011-08-27 Thread Yumin
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(instrumen

Re: [R] How download Yahoo Quote?

2011-08-25 Thread R. Michael Weylandt
library(quantmod) getSymbols("IBM") Michael On Aug 25, 2011, at 6:20 PM, Yumin wrote: >Hello all: > >Friend told me that we can download the stock historical quote from > Yahoo site by R! > Could you tell me that is true or not, how to do that? > >Thanks! > > -- > View this mes

[R] How download Yahoo Quote?

2011-08-25 Thread Yumin
Hello all: Friend told me that we can download the stock historical quote from Yahoo site by R! Could you tell me that is true or not, how to do that? Thanks! -- View this message in context: http://r.789695.n4.nabble.com/How-download-Yahoo-Quote-tp3769563p3769563.html Sent from t