powered by
Returns TRUE / FALSE whether it is exactly 1 integer number (in fact, the class can be numeric but the number must be integer), non-missing
TRUE
FALSE
isInt(num)
variable to be tested
TRUE / FALSE
isNum, isLogical, isString
isNum
isLogical
isString
# NOT RUN { isInt(2) isInt(2L) isInt(-2) isInt(-2L) isInt(2.1) isInt(-2.1) isInt(1:5) isInt(NA_integer_) isInt(integer(0)) # }
Run the code above in your browser using DataLab