Description Usage Arguments Value Examples
View source: R/utilities-data-validation.R View source: R/utilities-input-validation.R
Utility function for checking that epsilon is acceptably defined.
Utility function for checking that epsilon is acceptably defined.
1 2 3 | checkEpsilon(epsilon, expectedLength = 1)
checkEpsilon(epsilon, expectedLength = 1)
|
epsilon |
A vector, that ought to be positive and of length one. |
expectedLength |
Integer value. Specifies how long the output ought to be. |
epsilon |
A vector, that ought to be positive. |
multipleEps |
A boolean value. If TRUE, multiple epsilon paramaters may be defined. Default to FALSE. |
The supplied epsilon if acceptable, otherwise an error message interupts.
The supplied epsilon if acceptable, otherwise an error message interupts.
1 2 3 | checkEpsilon(0.1)
## Not run: checkEpsilon(-2)
## Not run: checkEpsilon(c(0.1,0.5))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.