printMatrix

0th

Percentile

Print a matrix, allowing fractions or LaTeX output

Print a matrix, allowing fractions or LaTeX output

Usage
printMatrix(A, parent = TRUE, fractions = FALSE, latex = FALSE,
  tol = sqrt(.Machine$double.eps))
Arguments
A

A numeric matrix

parent

flag used to search in the parent envir for suitable definitions of other arguments. Set to TRUE (the default) if you want to only use the inputs provided.

fractions

If TRUE, print numbers as rational fractions

latex

If TRUE, print the matrix in LaTeX format

tol

Tolerance for rounding small numbers to 0

Value

The formatted matrix

See Also

fractions

Aliases
  • printMatrix
Examples
# NOT RUN {
A <- matrix(1:12, 3, 4) / 6
printMatrix(A, fractions=TRUE)
printMatrix(A, latex=TRUE)
# }
Documentation reproduced from package matlib, version 0.9.2, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.