Description Usage Arguments Value Examples
Utility functions for checking the type of an object. Unlike, for example, is.numeric in the base package, the function isNumeric in TypeChecker checks whether the given object is a single numeric value. A vector of two numeric values is not considered as numeric type. Conceptually, its type is vector whose element type happens to be numeric.
1 | TypeChecker(allowNA = FALSE, allowNull = FALSE)
|
allowNA |
Should NA be allowed? The method isNull ignores this parameter. |
allowNull |
Should NULL be allowed? The method isNA ignores this parameter. |
an instance of TypeChecker
1 2 3 4 5 6 | TypeChecker()$isNA(x)
TypeChecker()$isNull(x)
TypeChecker()$isBoolean(x)
TypeChecker()$isFunction(x)
TypeChecker()$isNumeric(x)
TypeChecker()$isString(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.