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)
TRUE if the value is a positive integer, FALSE otherwise (or NA)
the value(s) to be tested
the greatest value not accepted. Defaults to zero, meaning that one is the smallest integer that returns true.