TypeChecker: Constructor of the class TypeChecker

Description Usage Arguments Value Examples

View source: R/TypeChecker.R

Description

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.

Usage

1
TypeChecker(allowNA = FALSE, allowNull = FALSE)

Arguments

allowNA

Should NA be allowed? The method isNull ignores this parameter.

allowNull

Should NULL be allowed? The method isNA ignores this parameter.

Value

an instance of TypeChecker

Examples

1
2
3
4
5
6

cartowong/oo documentation built on May 21, 2019, 2:21 p.m.