is_integer {tester} | R Documentation |
Is integer
Description
Test if a number is an integer
Use
is_not_integer
to test the opposite condition
Usage
is_integer(x)
Arguments
x |
an R object |
See Also
Examples
is_integer(1) # TRUE
is_integer(-3) # TRUE
is_integer(pi) # FALSE
is_integer(iris$Species)
M = matrix(seq(-3, 2), 2, 3)
is_integer(M)
[Package tester version 0.2.0 Index]