From p.dalgaard@biostat.ku.dk  Fri Mar  9 10:29:14 2001
From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA)
Date: 09 Mar 2001 11:29:14 +0100
Subject: [Rd] as.numeric - Possible error (PR#870)
In-Reply-To: Peter Dalgaard BSA's message of "09 Mar 2001 10:46:15 +0100"
References: <200103090908.KAA16434@pubhealth.ku.dk> <x2itljl1g8.fsf@blueberry.kubism.ku.dk>
Message-ID: <x2g0gnkzgl.fsf@blueberry.kubism.ku.dk>

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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


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