[R] Problem with get.hist.quote (tseries library)....

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Thu Jun 6 21:48:52 CEST 2002


"Patrick Hausmann" <patrick.hausmann at uni-bremen.de> writes:

> At 16:36 - 6 Jun 2002, Carlos Ortega wrote:
> 
> > I am having a problem with the get.hist.quote command (tseries library) in
> > the Windows version.
> 
> I am having a similar problem:
> 
> ++++++++++++++ ERROR MESSAGE +++++++++++++++++++
> > library(tseries)
> > x <- get.hist.quote(instrument = "ibm", quote = c("Cl", "Vol"))
> trying URL 
> `http://chart.yahoo.com/table.csv?s=ibm&a=01&b=02&c=1991&d=0
> 6&e=05&f=2002&g=d&q=q&y=0&z=ibm&x=.csv'
> Content type `application/octet-stream' length unknown
> opened URL
> downloaded 119Kb
> 
> Error in fromchar(x) : character string is not in a standard 
> unambiguous format

Not happening here. 

a) is your tseries package up to date?

b) could you show us a few lines of output from

readLines("http://chart.yahoo.com/table.csv?s=ibm&a=01&b=02&c=1991&d=06&e=05&f=2002&g=d&q=q&y=0&z=ibm&x=.csv")

(yes, the whole command on one long line...)?

I kind of suspect a locale problem when I see similar reports from
Germany and Spain (or Spanish, extrapolating from Mr. Ortega's name),
although I don't quite see how it could be relevant here.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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