Learn R Programming

datarobot (version 2.8.0)

ValidateParameterIn: Ensure a parameter is valid

Description

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

Usage

ValidateParameterIn(paramValue, paramPossibilities, allowNULL = TRUE)

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.

Value

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

Examples

Run this code
# NOT RUN {
  ValidateParameterIn("all", DataSubset)
# }

Run the code above in your browser using DataLab