is.naturalnumber | R Documentation |
is.naturalnumber
returns true if the passed argument
is a positive integer, false otherwise.
Implementation taken from Marcog's answer
to this question
is.naturalnumber(x, low.Limit = 0)
x |
the value(s) to be tested |
low.Limit |
the greatest value not accepted. Defaults to zero, meaning that one is the smallest integer that returns true. |
TRUE if the value is a positive integer, FALSE otherwise (or NA)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.