[R] as.numeric(".") returns 0

Peter Dalgaard P.Dalgaard at biostat.ku.dk
Thu Jun 12 13:43:58 CEST 2008


Paul Johnson wrote:
> In R version 2.7.0 (2008-04-22) as.numeric(".") returns zero.
>
>   
>> as.numeric(".")
>>     
> [1] 0
>
> This must be a bug. Splus and previous versions of R (<= 2.6.0) return NA,
> as you might expect.
>
> I'm running R version 2.7.0 (2008-04-22) on Windows XP.
>
>   
I suspect that this got fixed along with the "lone sign" issue. I have

R version 2.7.0 Patched (2008-06-12 r45900)
Copyright (C) 2008 The R Foundation for Statistical Computing

> as.numeric(".")
[1] NA
Warning message:
NAs introduced by coercion



-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark      Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)              FAX: (+45) 35327907



More information about the R-help mailing list