Description Usage Arguments Value Examples
Checks that the input is a square matrix.
1 2 3 4 | assert_is_square_matrix(x, severity = getOption("assertive.severity",
"stop"))
is_square_matrix(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. |
TRUE
if the input is all zeroes (after coercion to be a
matrix).
1 2 | is_square_matrix(matrix(1:9, nrow = 3))
is_square_matrix(matrix(1:12, nrow = 3))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.