profitCheckIsPositiveInteger: Check if a value is a positive integer

View source: R/profitUtility.R

profitCheckIsPositiveIntegerR Documentation

Check if a value is a positive integer

Description

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

Usage

profitCheckIsPositiveInteger(x)

Arguments

x

Hopefully a positive integer.

Value

Returns nothing. Stops process if condition is not met.

Author(s)

Dan Taranu

Examples

## Not run: 
profitCheckIsPositiveInteger(3L)
profitCheckIsPositiveInteger(3.1)

## End(Not run)

ICRAR/ProFit documentation built on Feb. 1, 2024, 9:34 a.m.