validate_and_convert_matrix | R Documentation |
This function validates and converts a matrix to a specific format.
validate_and_convert_matrix(
mat,
name,
ensure_symmetric = FALSE,
force_binary = FALSE
)
mat |
The matrix to be validated and converted. |
name |
The name of the matrix for error messages. |
ensure_symmetric |
Logical indicating whether to ensure the matrix is symmetric. |
force_binary |
Logical indicating whether to force the matrix to be binary. |
The validated and converted matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.