Stagger matrices within a larger, block-diagonal matrix

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

foo <- matrix(rnorm(40000), ncol = 8) block_diag <- stagger_mats(foo, foo) dim(foo)
#> [1] 5000 8
dim(block_diag)
#> [1] 10000 16