[Rd] is.integer() (PR#6984)

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Jun 16 16:50:21 CEST 2004

On Wed, 16 Jun 2004 mmr at 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 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