printMatrix | R Documentation |
Print a matrix, allowing fractions or LaTeX output
printMatrix( A, parent = TRUE, fractions = FALSE, latex = FALSE, tol = sqrt(.Machine$double.eps) )
A |
A numeric matrix |
parent |
flag used to search in the parent envir for suitable definitions of other arguments.
Set to |
fractions |
If |
latex |
If |
tol |
Tolerance for rounding small numbers to 0 |
The formatted matrix
fractions
A <- matrix(1:12, 3, 4) / 6 printMatrix(A, fractions=TRUE) printMatrix(A, latex=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.