Learn R Programming

dMod (version 1.0.0)

blockdiagSymb: Embed two matrices into one blockdiagonal matrix

Description

Embed two matrices into one blockdiagonal matrix

Usage

blockdiagSymb(M, N)

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

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab