mat2TeX {SAGx} | R Documentation |
The function outputs a matrix to a LaTeX table
mat2TeX(mat, digits = 4, rowNameTitle = "", file = "", roundNum = NULL, rowNameAlign = "l", matAlign = "r", prtHead = TRUE, prtEnd = TRUE, extraTitle = NULL, rowNameCols = 1, append = FALSE)
mat |
a matrix |
digits |
number of digits |
rowNameTitle |
title above row names |
file |
output file |
roundNum |
integer indicating the precision |
rowNameAlign |
alignment of row names, default is "l" |
matAlign |
alignment of columns, default is "r" |
prtHead |
if TRUE the begin{tabular} line is produced |
prtEnd |
if TRUE the end{tabular} line is produced |
extraTitle |
extra title |
rowNameCols |
the row name column, default is 1 |
append |
if TRUE the output is appended to file, deafult is FALSE |
Juerg Kindermann; code found on R list