check.numrange: Check function: range of a variable

View source: R/checks.R

check.numrangeR Documentation

Check function: range of a variable

Description

This function checks whether the variable is within a certain interval. If not, an error message is displayed.

Usage

check.numrange(x, name.var, left.type, left, right.type, right)

Arguments

x

The variable to be checked.

name.var

The name of the variable.

left.type

The type of the left interval (open or closed).

left

The value of lower bound.

right.type

The type of the right interval (open or closed).

right

the value of the upper bound.

Value

Nothing is returned.


conroylau/lpinfer documentation built on Oct. 23, 2022, 9:21 a.m.