Description Arguments Examples
is_matrix
tests if an object is a matrix
is_numeric_matrix
tests if an object is a numeric
matrix
is_string_matrix
tests if an object is
a string matrix
is_logical_matrix
tests if an
object is a logical matrix
is_not_matrix
tests
if an object is not a matrix
x |
an R object |
1 2 3 4 5 6 7 8 9 10 11 12 13 | A = matrix(1:10, 5, 2)
B = matrix(letters[1:10], 5, 2)
C = 1:10
is_matrix(A) # TRUE
is_matrix(C) # FALSE
is_not_matrix(C) # TRUE
is_numeric_matrix(A) # TRUE
is_numeric_matrix(B) # FALSE
is_string_matrix(A) # FALSE
is_string_matrix(B) # TRUE
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.