profitCheckIsPositiveInteger: Check if a value is a positive integer

Description Usage Arguments Value Author(s) Examples

View source: R/profitUtility.R

Description

A simple convenience function to check if a value is a positive integer, which several arguments to functions need to be.

Usage

1

Arguments

x

Hopefully a positive integer.

Value

Returns nothing. Stops process if condition is not met.

Author(s)

Dan Taranu

Examples

1
2
3
4
5
## Not run: 
profitCheckIsPositiveInteger(3L)
profitCheckIsPositiveInteger(3.1)

## End(Not run)

ProFit documentation built on Nov. 11, 2019, 5:07 p.m.