tab2mat | R Documentation |
Utility function to convert a row matrix to a square matrix.
Used as the brms
package returns things like the Cholesky
decomposition matrix as separate columns where rows are posterior draws.
Not intended to be called directly by most users.
tab2mat(X) tab2matR(X)
X |
a matrix |
A numeric matrix with one row.
tab2matR
: Pure R
implementation of tab2mat
tab2mat(matrix(1:4, 1)) tab2mat(matrix(1:9, 1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.