Learn R Programming

ProFit (version 1.3.3)

profitCheckIsPositiveInteger: 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.

Examples

Run this code
# NOT RUN {
profitCheckIsPositiveInteger(3L)
profitCheckIsPositiveInteger(3.1)
# }

Run the code above in your browser using DataLab