is_integer: Is integer

Description Usage Arguments See Also Examples

Description

Test if a number is an integer
Use is_not_integer to test the opposite condition

Usage

1

Arguments

x

an R object

See Also

is_natural

Examples

1
2
3
4
5
6
7
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)

gastonstat/tester documentation built on May 16, 2019, 6:38 p.m.