matrix.format {powertools} | R Documentation |
Internal-use function for displaying matrices in function outputs
Description
Internal-use function for displaying matrices in function outputs
Usage
matrix.format(matrix = NULL, nspaces = 18)
Arguments
matrix |
The matrix to be displayed. |
nspaces |
The number of white spaces before the matrix; defaults to 18. |
Value
The matrix printed as a string with rows separated by newline.
Examples
matrix <- matrix(c(1, 2, 3, 4), nrow = 2)
matrix.format(matrix = matrix)
[Package powertools version 0.1.2 Index]