View source: R/profitUtility.R
profitCheckIsPositiveInteger | R Documentation |
A simple convenience function to check if a value is a positive integer, which several arguments to functions need to be.
profitCheckIsPositiveInteger(x)
x |
Hopefully a positive integer. |
Returns nothing. Stops process if condition is not met.
Dan Taranu
## Not run:
profitCheckIsPositiveInteger(3L)
profitCheckIsPositiveInteger(3.1)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.