Hi, All
I am using is.integer function to examine whether an object is an integer or 
not, but I get such results,

> x<-3
> is.integer(x)
[1] FALSE

> x<-3:4
> x
[1] 3 4
> is.integer(x)
[1] TRUE

Seems that the is.integer cannot handle scalers, 

> is.integer(5)
[1] FALSE

> is.integer(5:6)
[1] TRUE

Is this a bug in R or I made some mistakes? I am using R 2.2.1 under Windows XP

Thanks a lot!

Leon


        [[alternative HTML version deleted]]

______________________________________________
R-help@stat.math.ethz.ch 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