Learn R Programming

datarobot (version 2.18.6)

ValidateParameterIn: Ensure a parameter is valid

Description

A valid parameter paramValue is either NULL or in the space of paramPossibilities.

Usage

ValidateParameterIn(paramValue, paramPossibilities, allowNULL = TRUE)

Value

TRUE if paramValue is valid, otherwise it raises an error.

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.

Examples

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

Run the code above in your browser using DataLab