matrixes_can_multiply | R Documentation |
Check if the passed entities are matrixes that can multiply together
matrixes_can_multiply(m1, m2, result_num_rows = NULL, result_num_cols = NULL)
m1 |
The first matrix |
m2 |
The second matrix |
result_num_rows |
The expected number of rows of the result. Optional. |
result_num_cols |
The expected number of cols of the result. Optional. |
## Not run:
# For assertion
assertthat::assert_that(qscheck::matrixes_can_multiply(m1, m2))
# For check
if (qscheck::matrixes_can_multiply(m1, m2)) {}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.