[Rd] as.character on NaN gives "NaN", is that intentional?

Ulrike Grömping groemping at bht-berlin.de
Tue Sep 7 18:23:10 CEST 2010


Dear DevelopeRs,

I am surprised about the outcome of the second command:

str(as.character(as.numeric("ee"))) 
str(as.character(log(-1)))

I would have expected a character NA. Is there an intention behind this 
behavior?

Best, Ulrike

-- 
*****************************************************
* Ulrike Groemping                                  *
* BHT Berlin - University of Applied Sciences       *
*****************************************************
* +49 (30) 39404863 (Home Office)                   *
* +49 (30) 4504 5127 (BHT)                          *
*****************************************************
* http://prof.beuth-hochschule.de/groemping         *
* groemping at bht-berlin.de                           *



More information about the R-devel mailing list