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