Re: [Rd] is.numeric (PR#8067)

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Mon 22 Aug 2005 - 13:05:35 GMT

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@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@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

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Mon Aug 22 23:12:44 2005

This archive was generated by hypermail 2.1.8 : Mon 24 Oct 2005 - 22:27:40 GMT