isInt: isInt

Description Usage Arguments Value See Also Examples

Description

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

Usage

1
isInt(num)

Arguments

num

variable to be tested

Value

TRUE / FALSE

See Also

isNum, isLogical, isString

Examples

1
2
3
4
5
6
7
8
9
isInt(2)
isInt(2L)
isInt(-2)
isInt(-2L)
isInt(2.1)
isInt(-2.1)
isInt(1:5)
isInt(NA_integer_)
isInt(integer(0))

bbTomas/tbTools documentation built on May 11, 2019, 9:25 p.m.