is_natural {tester} | R Documentation |
Test if is a natural number
is_natural(x)
x |
an R object |
Zero is not included in the set of natural numbers
is_natural(1)
is_natural(0)
is_natural(seq(-2, 3))
is_natural(iris$Species)
M = matrix(seq(-3, 2), 2, 3)
is_natural(M)