View source: R/utilities_Matrix.R
is_matrix_or_Matrix | R Documentation |
Often, it helps to know whether an object is a matrix
or a Matrix
,
and you don't care which.
This function helps in those situations.
is_matrix_or_Matrix(a)
a |
The object about which we want to know if it is a |
TRUE
when a
is a matrix
or a Matrix
. FALSE
otherwise.
is_matrix_or_Matrix(42)
is_matrix_or_Matrix(matrix(42))
is_matrix_or_Matrix(Matrix::Matrix(42))
is_matrix_or_Matrix(matsbyname::Matrix(42))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.