bmat | R Documentation |
Construct a block matrix using a character string initializer.
bmat(x, rows = TRUE, sep = ",", ...)
x |
A data vector, character string, or a list. |
rows |
Logical. If TRUE (the default) the matrix is filled by rows, otherwise the matrix is filled by columns. |
sep |
Separator string. Values within each row/column of x are
separated by this string. Default is |
... |
Additional optional arguments. |
A matrix.
mat()
, [dmat().
# Construct a block matrix from matrices A1, A2, and A3
A1 <- mat("1, 1; 1, 1")
A2 <- mat("2, 2; 2, 2")
A3 <- mat("3, 3, 3, 3")
bmat("A1, A2; A3")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.