dbind | R Documentation |
Bind matrices diagonally
dbind(..., .fill = NULL)
... |
Matrices. |
.fill |
Value to fill the off-"diagonal" values. If |
M1 <- matrix(1:8, 2, 4)
M2 <- matrix(9:14, 2, 3)
dbind(M1, M2)
dbind(M1, M2, .fill = NA)
M1 <- matrix(letters[1:4], 2, 2)
M2 <- matrix(LETTERS[5:10], 3, 2)
dbind(M1, M2)
dbind(M1, M2, .fill = "Banana")
M1 <- matrix(TRUE, 2, 3)
M2 <- matrix(NA, 3, 4)
dbind(M1, M2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.