is_even | R Documentation |
Test if an object is an even number
is_not_even
tests the opposite condition
is_even(x)
x |
an R object |
is_odd
is_even(2)
is_even(1)
is_even(seq(-5, 5))
is_even(iris$Species)
is_even(iris)
is_even(list(1, 0, -1, iris))
set.seed(999)
M = matrix(1:12, 4, 3)
is_even(M)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.