feasible: Returns if a given value meets a given feasibility condition....

View source: R/rutils.R

feasibleR Documentation

Returns if a given value meets a given feasibility condition. The feasibility condition is specified by a feasibility range and a set of non-feasible values.

Description

Returns if a given value meets a given feasibility condition. The feasibility condition is specified by a feasibility range and a set of non-feasible values.

Usage

feasible(v, range = NULL, excludes = NULL)

Arguments

v

A numeric or a vector of numerics or integers

range

Vector of two numerics containing the lower and upper bounds of the feasibility range. If range is NULL (default), range condition checking is skipped.

exclude

Vector of numerics containing non-feasible values If exclude is NULL (default), non-feasibility condition checking is skipped.

Value

Logical TRUE if the given value is not missing, within the given range and not in exclude, FALSE otherwise.


genpack/gener documentation built on March 14, 2023, 9:52 a.m.