assert_has_dims | R Documentation |
Checks to see if the input has dimensions.
assert_has_dims(x, severity = getOption("assertive.severity", "stop")) has_dims(x, .xname = get_name_in_parent(x))
x |
Input to check. |
severity |
How severe should the consequences of the assertion be?
Either |
.xname |
Not intended to be used directly. |
has_dims
returnsTRUE
if dim
is non-null.
assert_has_dims
returns nothing but throws an error if
has_dims
is not TRUE
.
dim
, is_of_dimension
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.