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

Description Usage Arguments Value Examples

View source: R/Validate.R

Description

Check if a parameter is in a list of possibilities.

Usage

1
2
3
4
5
6
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

1
2
3
4
## Not run: 
  IsParameterIn("all", DataSubset)

## End(Not run)

datarobot documentation built on June 2, 2021, 9:06 a.m.