check.positiveinteger: Check function: positive integer

View source: R/checks.R

check.positiveintegerR Documentation

Check function: positive integer

Description

This function checks whether the class of the variable is numeric, has length 1 and is a positive integer. If not, an error message is displayed.

Usage

check.positiveinteger(x, name.var)

Arguments

x

The variable to be checked.

name.var

The name of the variable.

Value

Nothing is returned.


conroylau/lpinfer documentation built on Sept. 5, 2024, 9 p.m.