Learn R Programming

linpk (version 1.0)

blockdiag: Construct a block-diagonal matrix.

Description

Construct a block-diagonal matrix.

Usage

blockdiag(...)

Arguments

...

Any number of square matrices making up the diagonal blocks of the matrix.

Value

A block-diagonal matrix.

Examples

Run this code
# NOT RUN {
blockdiag(matrix(1, 2, 2), 2, matrix(3, 4, 4))
# }

Run the code above in your browser using DataLab