[R] Help with 'get.hist.quote' on tseries
Ko-Kang Wang
Ko-Kang at xtra.co.nz
Mon Oct 29 09:49:41 CET 2001
Well I have the same problem but ONLY WITH trying to get ibm. In other
words all other examples in the ?get.hist.quote are fine:
I am running R 1.3.1 on Windows ME.
See below:
# This is fine.
x <- get.hist.quote( instrument = "^spc", start = "1998-01-01",
quote = "Close")
plot(x)
# This is not fine as cannot find ibm.
# Error messages are the same as listed by Andrew.
x <- get.hist.quote(instrument = "ibm", quote = c("Cl", "Vol"))
plot(x, main = "International Business Machines Corp")
# Same. Retrieved "^spc" fine but when trying to do x, it failed.
# Cannot get ibm.
spc <- get.hist.quote(instrument = "^spc", start = "1998-01-01")
ibm <- get.hist.quote(instrument = "ibm", start = "1998-01-01")
x <- na.remove(ts.union(spc, ibm))
plot(x, main = "IBM vs S&P 500")
Cheers,
Ko-Kang Wang
----------------------------------------------------------------------------
--
Ko-Kang Kevin Wang
Statistical Analysis Division Leader
Software Developers' Klub (SDK)
University of Auckland
New Zealand
----- Original Message -----
From: "Adrian Trapletti" <a.trapletti at bluewin.ch>
To: "Dr. Andrew Criswell" <mousie at arcriswell.com>
Cc: "R-Help" <r-help at stat.math.ethz.ch>
Sent: Monday, October 29, 2001 9:47 PM
Subject: [R] Help with 'get.hist.quote' on tseries
> > Date: Mon, 29 Oct 2001 09:36:43 +0700
> > From: "Dr. Andrew Criswell" <mousie at arcriswell.com>
> > Subject: [R] Help with 'get.hist.quote' on tseries
> >
> > Hi ALL:
> >
> > I am trying to use get.help.quote from library(tseries). I tried
> > to run the example from help(get.hist.quote) but R complained. Here
> > is the command I used and the response:
> >
> > ibm <- get.hist.quote(instrument = "ibm", start = "1998-01-01")
> > trying URL
`http://chart.yahoo.com/table.csv?s=ibm&a=01&b=01&c=1998&d=10&e=28&f=2001&g=
d&q=q&y=0&z=ibm&x=.
> > csv'
> >
> > Content type `application/octet-stream' length unknown
> > opened URL
> > downloaded 45Kb
> >
> > time series starts 1998-01-02
> > time series ends 2001-10-26
> > Error in fromchar(x) : character string is not in a standard unambiguous
> > format
> > >
> >
> > Can anyone help? (I use R 1.3.1 with Windows 2000.)
> >
> > Thanks,
> > ANDREW
> >
> > Andrew Criswell, Ph.D.
> > Graduate School, Bangkok University
> >
>
> Under Suse Linux 7.0 and R 1.3.1 this work fine (tseries 0.8-0). So this
is maybe a Windows related problem?
>
> best
> Adrian
>
> --
> Dr. Adrian Trapletti Phone: +41 (0)1 994 56 30
> Wildsbergstrasse 31 Fax : +41 (0)1 994 56 33
> CH-8610 Uster Email: a.trapletti at bluewin.ch
> Switzerland WWW : trapletti.homeip.net
>
>
>
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
-.-.-
> r-help mailing list -- Read
http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
>
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
_._
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list