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

Description Usage Arguments Value Examples

View source: R/stagger_mats.R

Description

Stagger matrices within a larger, block-diagonal matrix

Usage

1

Arguments

...

one or more matrices, separated by commas

Value

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

Examples

1
2
3
4
foo <- matrix(rnorm(40000), ncol = 8)
block_diag <- stagger_mats(foo, foo)
dim(foo)
dim(block_diag)

gemma2 documentation built on Oct. 24, 2020, 5:06 p.m.