the package RAdamant now, I tried
the sentence you give me:
write.csv It declined to work!
Could you tell me the way to download quotes to spreadsheet in RAdamant
library? --Yumin
require(quantmod)
getSymbols('IBM', from='2010-01-01')
write.csv(Cl(IBM), file='ibm-2010-present.csv
getSymbols('IBM', from='2010-01-01')
[1] IBM
write.csv(Cl(IBM), file='ibm-2010-present.csv')
I can open the 'ibm-2010-present.csv'
- Original Message -
From: Hasan Diwan-2 [via R]
To: Yumin
Sent: Sunday, September 11, 2011 11:27 AM
Subject: Re: How download
Hello all:
As everyone knows the stock quotes in Yahoo can be downloaded directly
on EXCEL spreadsheet.
we can also use the simple sentence of package tseries of R to download
Yahoo quote:
x - get.hist.quote(instrument = ibm, start = 2010-01-01,
quote = close)
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.
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 =
- 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
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))
{
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
8 matches
Mail list logo