[R] Help with 'get.hist.quote' on tseries
Prof Brian Ripley
ripley at stats.ox.ac.uk
Tue Oct 30 12:56:50 CET 2001
On Mon, 29 Oct 2001, Adrian Trapletti wrote:
> > 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?
It also works fine on R 1.3.1 with Windows 2000 here. It might be a
locale-specific problem: in any case I think it needs you to debug it,
possibly trying setting your machine to a different locale.
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
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