powered by
A simple convenience function to check if a value is a positive integer, which several arguments to functions need to be.
profitCheckIsPositiveInteger(x)
Hopefully a positive integer.
Returns nothing. Stops process if condition is not met.
# NOT RUN { profitCheckIsPositiveInteger(3L) profitCheckIsPositiveInteger(3.1) # }
Run the code above in your browser using DataLab