writeLatexTable {maDB}R Documentation

Writes a matrix or data frame in latex format to a file.

Description

writeLatexTable This function writes a matrix or a data frame formatted as a LaTeX table to a text file. The text size as well as the number of digits and the desired caption and label can be specified.

Usage

writeLatexTable(data=NULL,file=NULL,append=TRUE,textsize="normalsize",caption=NULL,label=NULL,digits=NULL)

Arguments

data The data that should be written. A matrix or a data frame, the column names will be used as column headers, the row names as row headers.
file The file where the table should be written into. If directories are specified, these directories (if not already existant) will be created. As file parameter also a file handle can be submitted.
append If the table should be appended to the text in the file.
textsize The size of the text, possible alternatives for "normalsize" are "small", "scriptsize" and all other LaTeX text sizes.
caption The text that should be written into the table caption.
label The label text that can be used to link to this table.
digits The number of digits that should be used for all numeric values in the table.

Details

One important feature of this function is, that the table can be written into a file that has not to be in the working directory. So one can for example by submitting as file=“doc/tabletest.tex” writing the table into the file “tabletest.tex”, that is in the subdirectory “doc” in the working directory. If this directory does not already exist, the function will create it. But remember that you have to use always the unix file separator “/”, also in Windows!

Author(s)

Johannes Rainer

References

See Also

writeFigure

Examples






[Package maDB version 1.10.0 Index]