check.positive: Check function: positive number

View source: R/checks.R

check.positiveR Documentation

Check function: positive number

Description

This function checks whether variable satisfies the following requirements:

  • The class of the variable is numeric.

  • The length of the variable is 1.

  • The variable is strictly positive.

If not, an error message is displayed.

Usage

check.positive(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 Oct. 23, 2022, 9:21 a.m.