assert_data | R Documentation |
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)
x |
An object to be checked. |
Throws an error, if any, and returns x
invisibly otherwise.
N. Frerebeau
Other validation methods:
assert_constant()
,
assert_length()
,
assert_lower()
,
assert_names()
,
assert_numeric
,
assert_package()
,
assert_square()
,
assert_type()
,
validate()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.