Learn R Programming

datarobot (version 2.14.2)

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)

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

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

Run the code above in your browser using DataLab