assert_missing()
and assert_infinite()
check if an object contains any
missing (NA
, NaN
) or infinite (Inf
) value.
assert_unique()
checks if an object contains duplicated elements.``
assert_missing(x)assert_infinite(x)
assert_unique(x, expected)
Throws an error, if any, and returns x
invisibly otherwise.
An object to be checked.
An appropriate expected value.
N. Frerebeau
Other validation methods:
check-attribute
,
check-graph
,
check-matrix
,
check-numeric
,
check-type
,
validate()