Displaying 1 result from an estimated 1 matches for "380959".
Did you mean:
370959
2005 Jun 30
1
Is.integer and testing for integers
Hi,
I was trying to figure out if there is a function in R that tests if R
object contains only integers. I though "is.integer" would be it, but this
function only checks "whether its argument is of integer type or not". As a
result
x = (1:5)^2
is.integer(x)
Returns false. Of course I can write my own function like
"!any(x!=as.integer(x))" but I am just trying to