Hi

Numbers are normaly stored as double so you has to declare it as an 
integer.

> str(10)
 num 10
> str(as.integer(10))
 int 10
>

HTH
Petr



On 24 Jan 2006 at 21:29, Taka Matzmoto wrote:

From:                   "Taka Matzmoto" <[EMAIL PROTECTED]>
To:                     [email protected]
Date sent:              Tue, 24 Jan 2006 21:29:51 -0600
Subject:                [R] is.integer() function

> Hi R users
> I have a simple question to ask.
> Why am I getting FALSE on this
> 
> >is.integer(10)
> [1] FALSE
> 
> 10 is a integer number.
> 
> Thanks in advance.
> 
> M
> 
> ______________________________________________
> [email protected] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html

Petr Pikal
[EMAIL PROTECTED]

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to