[Rd] as.numeric - Possible error (PR#870)

Peter Dalgaard BSA p.dalgaard@biostat.ku.dk
09 Mar 2001 11:29:14 +0100


Peter Dalgaard BSA <p.dalgaard@biostat.ku.dk> writes:

> The problem there was that we used strtod which returns 0 for
> nonnumerics (what else can it do?) and then checked the rest of the
> field with isBlankString - which was true of course. I'll have a look
> and see if as.numeric is similar.

It was. Fixed and committed for 1.3. (as.integer and as.complex too)

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