Description Usage Arguments Value Author(s) See Also
Exports a LaTeX table (as produced by xtable
) to a file,
optionally converting blanks to dashes and sanitizing text.
1 2 3 4 |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.