| blocklist | R Documentation | 
Given a matrix and the size of a block, returns a list containing all submatrices made by blocks.
blocklist(mat, block)
mat | 
 numeric matrix  | 
block | 
 integer vector of length 2, containing the size of the block (rows, columns). If only one integer is passed, the block is square  | 
A list of submatrices made by blocks
mat <- matrix(1:64, nrow = 8, byrow = TRUE)
mat
blocklist(mat, 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.