Last chance! 50% off unlimited learning
Sale ends in
Test if is a natural number
is_natural(x)
an R object
Zero is not included in the set of natural numbers
is_negative
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)
Run the code above in your browser using DataLab