| assert_length | R Documentation |
Check Object Length(s)
assert_length(
x,
expected,
allow_empty = empty,
allow_null = FALSE,
empty = FALSE
)
assert_lengths(x, expected)
x |
An object to be checked. |
expected |
An appropriate expected value. |
allow_empty |
A |
allow_null |
A |
empty |
Deprecated. |
Throws an error, if any, and returns x invisibly otherwise.
N. Frerebeau
Other checking methods:
assert_constant(),
assert_dim(),
assert_empty(),
assert_infinite(),
assert_lower(),
assert_missing(),
assert_names(),
assert_numeric,
assert_package(),
assert_square(),
assert_type(),
assert_unique()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.