Skip to content
Back to formatted view

Raw Message

Message-ID: <Pine.LNX.4.61.0508221402410.2134@gannet.stats>
Date: 2005-08-22T13:05:35Z
From: Brian Ripley
Subject: is.numeric (PR#8067)
In-Reply-To: <20050815170722.34DDA18B8F@slim.kubism.ku.dk>

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