is_matrix | R Documentation |
Check if the passed entity is a matrix
is_matrix(
value,
exact_num_rows = NULL,
exact_num_cols = NULL,
allow_null = FALSE
)
value |
the value to check |
exact_num_rows |
If specified, the matrix must have the specified exact number of rows |
exact_num_cols |
If specified, the matrix must have the specified exact number of cols |
allow_null |
If TRUE, allow NULL as a value |
## Not run:
# For assertion
assertthat::assert_that(qscheck::is_matrix(value))
# For check
if (qscheck::is_matrix(value)) {}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.