matrix_helpers | R Documentation |
Create matrices from vector input
bmat(..., correlation = FALSE, digits = -1)
cmat(..., digits = -1)
dmat(...)
... |
matrix data |
correlation |
logical; if TRUE, off-diagonal elements are assumed to be correlations and converted to covariances |
digits |
if greater than zero, matrix is passed to signif (along with digits) prior to returning |
bmat
makes a block matrix. cmat
makes a correlation matrix.
dmat
makes a diagonal 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.