assert_length {arkhe} | R Documentation |
Check Object Length/Dimensions
Description
Check Object Length/Dimensions
Usage
assert_length(x, expected, empty = FALSE)
assert_lengths(x, expected)
assert_empty(x)
assert_filled(x)
assert_dimensions(x, expected)
Arguments
x |
An object to be checked. |
expected |
An appropriate expected value. |
empty |
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_lower()
,
assert_names()
,
assert_numeric
,
assert_package()
,
assert_square()
,
assert_type()
,
validate()
[Package arkhe version 1.7.0 Index]