matrix.format | R Documentation |
Internal-use function for displaying matrices in function outputs
matrix.format(matrix = NULL, nspaces = 18)
matrix |
The matrix to be displayed. |
nspaces |
The number of white spaces before the matrix; defaults to 18. |
The matrix printed as a string with rows separated by newline.
matrix <- matrix(c(1, 2, 3, 4), nrow = 2)
matrix.format(matrix = matrix)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.