Description Usage Arguments Details Value Author(s) See Also
validateDiscrete
Validates a parameters that take discrete values.
1 | validateDiscrete(object)
|
object |
The object to be validated |
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.
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.
John James, jjames@DataScienceSalon.org
Other Validation Functions: validateClass
,
validateKeyValue
,
validateLogical
,
validatePath
, validateRange
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.