assert_data {arkhe} | R Documentation |
Check Data
Description
-
assert_missing()
andassert_infinite()
check if an object contains any missing (NA
,NaN
) or infinite (Inf
) value. -
assert_unique()
checks if an object contains duplicated elements.
Usage
assert_missing(x)
assert_infinite(x)
assert_unique(x)
Arguments
x |
An object to be checked. |
Value
Throws an error, if any, and returns x
invisibly otherwise.
Author(s)
N. Frerebeau
See Also
Other validation methods:
assert_constant()
,
assert_length()
,
assert_lower()
,
assert_names()
,
assert_numeric
,
assert_package()
,
assert_square()
,
assert_type()
,
validate()
[Package arkhe version 1.7.0 Index]