blockdiag {calibrator}R Documentation

Assembles matrices blockwise into a block diagonal matrix

Description

Assembles matrices blockwise into a block diagonal matrix with optional padding value

Usage

blockdiag(m1, m2, p.tr = 0, p.ll = 0)

Arguments

m1

Upper left matrix

m2

Lower right matrix

p.tr

Padding value for top right quadrant. Defaults to zero.

p.ll

Padding value for lower left quadrant. Defaults to zero.

Note

The function documented here is a subset of adiag of package magic

Author(s)

Robin K. S. Hankin

Examples

data(toys)
blockdiag(D1.toy,D2.toy)

[Package calibrator version 1.2-8 Index]