mat2TeX {SAGx}R Documentation

Ouput matrix to LaTeX

Description

The function outputs a matrix to a LaTeX table

Usage

mat2TeX(mat, digits = 4, rowNameTitle = "", file = "",
 roundNum = NULL, rowNameAlign = "l", matAlign = "r",
 prtHead = TRUE, prtEnd = TRUE, extraTitle = NULL,
 rowNameCols = 1, append = FALSE)

Arguments

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

Author(s)

Juerg Kindermann; code found on R list


[Package SAGx version 1.58.0 Index]