[Rd] is.numeric (PR#8067)

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Aug 22 15:05:35 CEST 2005


Please do read the help page before firing off a bug report, as we do ask 
in several places.  It says

      'is.numeric' returns 'TRUE' if its argument is of type numeric or
      type integer and 'FALSE' otherwise.

and

> typeof(NaN)
[1] "double"

(numeric and double are synonyms for types).

Working as documented is a not a bug.

On Mon, 15 Aug 2005 toedling at ebi.ac.uk wrote:

> Full_Name: Joern Toedling
> Version: 2.1.0

We do ask for reports to be made on the current version of R.

> OS: Linux
> Submission from: (NULL) (193.62.198.2)
>
>
> Maybe, it's supposed to be a feature rather than a bug, but I find it quite
> strange that
>> is.numeric(NaN)
> returns TRUE, when NaN means 'Not a Number'


-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-devel mailing list