From ripley at stats.ox.ac.uk  Wed Jun 16 16:50:21 2004
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Wed Jun 16 16:50:26 2004
Subject: [Rd] is.integer() (PR#6984)
In-Reply-To: <20040616144549.6AE271057A@slim.kubism.ku.dk>
Message-ID: <Pine.LNX.4.44.0406161547580.14428-100000@gannet.stats>

On Wed, 16 Jun 2004 mmr@tci.ufal.br wrote:

> I'm not sure if is it a BUG or not...

You were wrong to send a bug report if you are not sure: see the R FAQ.

> I'm using R 1.9.0, and I used the command below:
> 
> > is.integer(9)
> [1] FALSE
> 
> R manual contains this words about the is.integer() function:
> 
> "is.integer returns TRUE or FALSE depending on whether its argument is of 
> integer type or not."
> 
> What's the problem? Am I wrong about the BUG report?

9 is a double constant, not an integer constant.  The type of `9' is not
integer: try it

> typeof(9)
[1] "double"

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


[Rd] is.integer() (PR#6984)
Prof Brian Ripley