errorIfNotType: Throw Error if Object is Wrong Type

Description Usage Arguments

Description

Throw an error if object doesn't match the specified type

Usage

1
errorIfNotType(x, test_type)

Arguments

x

Logical expression.

test_type

String containing the type to test. Valid types: 'character', 'numeric' or 'logical'


fabarca/reutiles documentation built on May 16, 2019, 9:57 a.m.