| wrapLaTable | R Documentation |
wrapLaTable() wraps (a table and tabular environment) around
the lines of the body of a LaTeX table and utilizes
writeLines() to write the LaTeX table.
wrapLaTable(x, align, do.table = TRUE, placement = "htbp", center = TRUE,
fontsize = "normalsize", booktabs = TRUE,
caption = NULL, label = NULL)
x |
a |
align |
table columns alignment string (e.g.,
|
do.table |
|
placement |
(if |
center |
|
fontsize |
|
booktabs |
|
caption |
(if |
label |
(if |
Note that necessary LaTeX packages (such as tabularx) have to
be loaded in the preambel of the corresponding .tex or .Rnw file.
a “LaTeX table”, of class "Latex" (where the
print method uses writeLines()).
Marius Hofert.
see simsalapar-package.
toLatex() where it is used to create
a LaTeX table.
ftab <- ftable(Titanic, row.vars = 1:2)
fftab <- fftable(ftab)
tlist <- tablines(fftab)
wrapLaTable(structure(tlist$body, head = tlist$head), align = tlist$align,
caption="The Titanic data set.", label="tab:titanic")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.