matrix_helpers | R Documentation |
These functions are simple utilities for creating diagonal, block or correlation matrices.
bmat(..., correlation = FALSE, digits = -1)
cmat(..., digits = -1)
dmat(...)
... |
matrix data. |
correlation |
logical; if |
digits |
if greater than zero, matrix is passed to |
bmat()
makes a block matrix. cmat()
makes a correlation matrix.
dmat()
makes a diagonal matrix.
A matrix.
as_bmat()
, as_dmat()
dmat(1,2,3)/10
bmat(0.5,0.01,0.2)
cmat(0.5, 0.87,0.2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.