blockdiag | R Documentation |
Construct a block-diagonal matrix.
blockdiag(..., .names = NULL, .colnames = .names, .rownames = .names)
... |
Any number of square matrices making up the diagonal blocks of the matrix. |
.names , .colnames , .rownames |
Optionally, specify the row and column names of the resulting matrix. |
A block-diagonal matrix.
blockdiag(matrix(1, 2, 2), 2, matrix(3, 4, 4))
blockdiag(c(a=5, b=6), Diag(c=7, d=8), LTmat(c(1, 2, 3), .names=c("e", "f")))
blockdiag(a=5, b=6, Diag(c=7, d=8), LTmat(c(1, 2, 3), .names=c("e", "f")))
blockdiag(5, 6, Diag(7, 8), LTmat(c(1, 2, 3)), .names=c("a", "b", "c", "d", "e", "f"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.