validateDiscrete: validateDiscrete

Description Usage Arguments Details Value Author(s) See Also

Description

validateDiscrete Validates a parameters that take discrete values.

Usage

1

Arguments

object

The object to be validated

Details

Class validates objects which take discrete parameters. The object must have a public member called params which is a list containing three elements: (1) a vector of variable names, (2) a vector containing the values of the variables, and (3) a list of vectors, where each vector contains the valid values for each of the variables.

Value

a list containing two elements: a code and a message. If the validation passed, the code will be TRUE and the msg element will be NULL. Otherwise, the code will be FALSE and the msg element will describe the error.

Author(s)

John James, jjames@DataScienceSalon.org

See Also

Other Validation Functions: validateClass, validateKeyValue, validateLogical, validatePath, validateRange


DecisionScients/NLPStudio documentation built on May 15, 2019, 12:51 p.m.