Description Usage Arguments Value See Also Examples
return the number of blocks of a multiblock object
1 | nblocks(x)
|
x |
a multiblock object |
the number of blocks
1 2 3 4 5 6 7 | # create some block-matrices
A = blockmatrix(matrix(1:12, 3, 4), 3, c(2,2))
B = blockmatrix(matrix(1:20, 5, 4), c(3,2), c(2,2))
# number of blocks
nblocks(A)
nblocks(B)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.