gemma2 (version 0.1.3)

stagger_mats: Stagger matrices within a larger, block-diagonal matrix

Description

Stagger matrices within a larger, block-diagonal matrix

Usage

stagger_mats(...)

Arguments

...

one or more matrices, separated by commas

Value

a block-diagonal matrix, with the inputted matrices as blocks on the diagonal.

Examples

Run this code
# NOT RUN {
foo <- matrix(rnorm(40000), ncol = 8)
block_diag <- stagger_mats(foo, foo)
dim(foo)
dim(block_diag)
# }

Run the code above in your browser using DataCamp Workspace