powered by
Create block diagonal matrix
Bdiag(A, k)
a numeric matrix forming each block.
an integer value indicating the number of blocks.
Return a block diagonal matrix from the matrix A.
# NOT RUN { Bdiag(matrix(1:4,2,2), 3) # }
Run the code above in your browser using DataLab