From cowan.pd at gmail.com  Wed Apr 22 21:55:25 2009
From: cowan.pd at gmail.com (Peter Cowan)
Date: Wed, 22 Apr 2009 12:55:25 -0700
Subject: [Rd] 'is.integer' (PR#13671)
In-Reply-To: <20090422174516.2EB1928321BF@mail.pubhealth.ku.dk>
References: <20090422174516.2EB1928321BF@mail.pubhealth.ku.dk>
Message-ID: <e1fc21b0904221255h25083068h56d63f2432984167@mail.gmail.com>

On Wed, Apr 22, 2009 at 10:45 AM,  <hzambran.newsgroups at gmail.com> wrote:
> Full_Name: Mauricio
> Version: 2.9.0 (2009-04-17)
> OS: ?i486-pc-linux-gnu
> Submission from: (NULL) (193.205.203.3)
>
>
> This is a very simple function that seems not to be working, according to the
> definition given by '?is.integer'.
>
> I checked in the Bug Tracking page at http://bugs.R-project.org/, but I didn't
> find any related message.
>
> The possible problem is:
>
>
>> is.integer(1)
> [1] FALSE
>
> and 1 is obviously an integer value.
>

Actually it's not:

> typeof(1)
[1] "double"

So the command does work as the help describes.  From ?is.integer()

"is.integer returns TRUE or FALSE depending on whether its argument is
of integer type or not, unless it is a factor when it returns FALSE."

In the HTML help "type" is a link to the typeof() function.

HTH

Peter

>
> I would really appreciate if you could clarify if this is really a bug or not.
>
> Thanks in advance,
>
> Mauricio
>
>> version
> ? ? ? ? ? ? ? _
> platform ? ? ? i486-pc-linux-gnu
> arch ? ? ? ? ? i486
> os ? ? ? ? ? ? linux-gnu
> system ? ? ? ? i486, linux-gnu
> status
> major ? ? ? ? ?2
> minor ? ? ? ? ?9.0
> year ? ? ? ? ? 2009
> month ? ? ? ? ?04
> day ? ? ? ? ? ?17
> svn rev ? ? ? ?48333
> language ? ? ? R
> version.string R version 2.9.0 (2009-04-17)
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



[Rd] 'is.integer' (PR#13671)
Peter Cowan