Stagger matrices within a larger, block-diagonal matrix
stagger_mats(...)
one or more matrices, separated by commas
a block-diagonal matrix, with the inputted matrices as blocks on the diagonal.
# 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 DataLab