exportTable {CALIBERdatamanage} | R Documentation |
Exports a LaTeX table (as produced by xtable
) to a file,
optionally converting blanks to dashes and sanitizing text.
exportTable(data, filename = NULL, align = "l", include.rownames = FALSE, include.colnames = FALSE, sanitize.text.function = "default", blank = "$-$", digits = 3, booktabs = FALSE, ...)
data |
a data.frame or character matrix |
filename |
filename to export to. If NULL, the output is returned visibly by the function. |
align |
character vector indicating column alignment. If include.rownames is TRUE, it should have length equal to the number of columns + 1, otherwise it can have length equal to the number of columns. If it is shorter than this, the last element is repeated to make it the correct length. Unlike with the function |
include.rownames |
whether row names should be included |
include.colnames |
whether column names should be included |
sanitize.text.function |
either 'default' or a function to convert special characters to LaTeX, for use by |
blank |
text to enter in blank cells |
digits |
number of significant digits |
booktabs |
whether to use |
... |
other arguments to pass to |
Returns a character vector with the LaTeX output. This is returned invisibly if
filename
is not NULL, otherwise it is returned invisibly.
Anoop Shah