same_dim | R Documentation |
same_dim()
tests if two matrices have same
dimension
different_dim()
tests if two
matrices have different dimension
same_dim(x, y)
x |
a matrix |
y |
a matrix |
same_nrow
a = matrix(1:15, 5, 3)
same_dim(a, a) # TRUE
same_dim(a, t(a)) # FALSE
different_dim(a, a) # FALSE
different_dim(a, t(a)) # TRUE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.