View source: R/textTable_methods2.bare.R
textTable.xtableList | R Documentation |
texttable
from an xtablelist
Object Create a textTable
from an xtableList
object produced by the
xtable
package. Such an object represents a set of subtables that
are to be stacked into a single table, with "subheadings" separating the
subtables. The textTable
that is produced by this function uses
the subheadings as an additional, outer row header layer. That layer can
optionally be moved inside the table by setting rowheadInside=TRUE
when the table is plotted.
## S3 method for class 'xtableList'
textTable(x, title, subtitle=character(0), foot, ...)
x |
An |
title |
Optional character vector containing title lines for the table. May be
empty ( |
subtitle , foot |
Optional character vectors providing additional annotation for the table.
May be empty (i.e., |
... |
Additional arguments passed to |
This function was designed based on the structure of objects produced by
version 1.8-4 of the xtable
package.
If x
has a message
attribute, it is used as the default
value of the foot
component of the returned textTable
.
If components of x
have no subheading
attribute, then the
subtables are simply stacked, with no additional row header layer to
separate or distinguish them. It is an error if only some of the
components have a subheading
attribute.
An object with S3 class textTable
. See the documentation for the
generic for details about its structure.
# 'mtcars_xtab' is an 'xtableList', following an example in the
# "listOfTablesGallery" vignette of the 'xtable' package. (See '?mtcars_xtab'
# for the code to create it.)
plot(textTable(mtcars_xtab), rowheadInside=TRUE,
title="Example of plotting an 'xtableList'",
subtitle="(With 'rowheadInside=TRUE')")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.