powered by
Internal-use function for displaying matrices in function outputs
matrix.format(matrix = NULL, nspaces = 18)
The matrix printed as a string with rows separated by newline.
The matrix to be displayed.
The number of white spaces before the matrix; defaults to 18.
matrix <- matrix(c(1, 2, 3, 4), nrow = 2) matrix.format(matrix = matrix)
Run the code above in your browser using DataLab