is_integer | R Documentation |
Test if a number is an integer
Use
is_not_integer
to test the opposite condition
is_integer(x)
x |
an R object |
is_natural
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.