Check Data Types
Arguments
- x
An object to be checked.
- expected
A
character
string specifying the expected type. It must be one of "list
", "atomic
", "vector
", "numeric
", "integer
", "double
", "character
" or "logical
".
See also
Other validation methods:
assert_constant()
,
assert_data
,
assert_length()
,
assert_lower()
,
assert_names()
,
assert_numeric
,
assert_package()
,
assert_square()
,
validate()