Learn R Programming

Rsfar (version 0.0.1)

Bdiag: Create block diagonal matrix

Description

Create block diagonal matrix

Usage

Bdiag(A, k)

Arguments

A

a numeric matrix forming each block.

k

an integer value indicating the number of blocks.

Value

Return a block diagonal matrix from the matrix A.

Examples

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

Run the code above in your browser using DataLab