Learn R Programming

limma (version 3.28.14)

blockDiag: Block Diagonal Matrix

Description

Form a block diagonal matrix from the given blocks.

Usage

blockDiag(...)

Arguments

...
numeric matrices

Value

Details

This function is sometimes useful for constructing a design matrix for a disconnected two-color microarray experiment in conjunction with modelMatrix.

See Also

modelMatrix

Examples

Run this code
a <- matrix(1,3,2)
b <- matrix(2,2,2)
blockDiag(a,b)

Run the code above in your browser using DataLab