Learn R Programming

datarobot (version 2.18.6)

IsParameterIn: 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
)

Value

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

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.

Examples

Run this code
if (FALSE) {
  IsParameterIn("all", DataSubset)
}

Run the code above in your browser using DataLab