assert_type {arkhe} | R Documentation |
Check Data Types
Description
Check Data Types
Usage
assert_type(x, expected)
assert_scalar(x, expected)
assert_function(x)
Arguments
x |
An object to be checked. |
expected |
A |
Value
Throws an error, if any, and returns x
invisibly otherwise.
Author(s)
N. Frerebeau
See Also
Other validation methods:
assert_constant()
,
assert_data
,
assert_length()
,
assert_lower()
,
assert_names()
,
assert_numeric
,
assert_package()
,
assert_square()
,
validate()
[Package arkhe version 1.7.0 Index]