powered by
Check if a parameter is in a list of possibilities.
IsParameterIn( paramValue, paramPossibilities, allowNULL = TRUE, paramName = NULL )
TRUE if paramValue is valid, otherwise returns an error message.
paramValue
object. The parameter value to check.
vector. A vector of possible values for the parameter.
logical. Whether or not to allow NULL as a possibility.
character. The name of the parameter to check.
if (FALSE) { IsParameterIn("all", DataSubset) }
Run the code above in your browser using DataLab