Description Usage Arguments Value Examples
Checks length of an object is within bounds.
1 2 3 4 5 6 | check_length(
x,
min_length = 1L,
max_length = max_integer(),
x_name = substitute(x)
)
|
x |
The object to check. |
min_length |
A count of the minimum length. |
max_length |
A count of the maximum length. |
x_name |
A string of the name of the object. |
Throws an informative error or returns an invisible copy of the object.
1 | try(check_length(1:2, 3L))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.