Hi R users
Is there anything wrong in "is" function? (R 2.7.2)
I believe that everyone will agree that "7" is an integer, right? but why R shows 7 is not an integer

is.integer(7)
[1] FALSE
is(7,"integer")
[1] FALSE
is(as.integer(7), "integer")
[1] TRUE

Thank you very much in advance
Chunhao

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to