IsParameterIn: Check if a parameter is in a list of possibilities.

View source: R/Validate.R

IsParameterInR Documentation

Check if a parameter is in a list of possibilities.

Description

Check if a parameter is in a list of possibilities.

Usage

IsParameterIn(
  paramValue,
  paramPossibilities,
  allowNULL = TRUE,
  paramName = NULL
)

Arguments

paramValue

object. The parameter value to check.

paramPossibilities

vector. A vector of possible values for the parameter.

allowNULL

logical. Whether or not to allow NULL as a possibility.

paramName

character. The name of the parameter to check.

Value

TRUE if paramValue is valid, otherwise returns an error message.

Examples

## Not run: 
  IsParameterIn("all", DataSubset)

## End(Not run)

datarobot documentation built on May 29, 2024, 4:36 a.m.