blockdiagSymb: Embed two matrices into one blockdiagonal matrix

Description Usage Arguments Value Examples

View source: R/tools.R

Description

Embed two matrices into one blockdiagonal matrix

Usage

1

Arguments

M

matrix of type character

N

matrix of type character

Value

Matrix of type character containing M and N as upper left and lower right block

Examples

1
2
3
M <- matrix(1:9, 3, 3, dimnames = list(letters[1:3], letters[1:3]))
N <- matrix(1:4, 2, 2, dimnames = list(LETTERS[1:2], LETTERS[1:2]))
blockdiagSymb(M, N)

dMod documentation built on Jan. 27, 2021, 1:07 a.m.