isNatural | R Documentation |
Natural number type.
isNatural(n)
n |
any numeric number. |
Returns TRUE
for natural (or: whole) numbers between 1 and 2^53-1.
Boolean
IsNatural <- Vectorize(isNatural) IsNatural(c(-1, 0, 1, 5.1, 10, 2^53-1, 2^53, Inf)) # isNatural(NA) ?
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.