is_matrix | R Documentation |
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 |
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.