block.diag | R Documentation |
Create a block diagonal matrix.
block.diag(x)
x |
"list" contains the block matrices |
For very large matrix. Consider using .bdiag() function in package "Matrix".
"matrix" The block diagonal matrix.
Created: Thu Feb 03 19:16:21 CET 2011; Current: Sun Mar 04 17:14:51 CET 2012.
Feng Li, Department of Statistics, Stockholm University, Sweden.
Modified from R-help list.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.