HSAURtable | R Documentation |
Generate longtable
LaTeX environments.
HSAURtable(object, ...)
## S3 method for class 'table'
HSAURtable(object, xname = deparse(substitute(object)), pkg = NULL,
...)
## S3 method for class 'data.frame'
HSAURtable(object, xname = deparse(substitute(object)), pkg = NULL,
nrows = NULL, ...)
## S3 method for class 'tabtab'
toLatex(object, caption = NULL, label = NULL,
topcaption = TRUE, index = TRUE, ...)
## S3 method for class 'dftab'
toLatex(object, pcol = 1, caption = NULL,
label = NULL, rownames = FALSE, topcaption = TRUE, index = TRUE,
...)
object |
an object of |
xname |
the name of the object. |
pkg |
the package |
nrows |
the number of rows actually printed for a
|
caption |
the (optional) caption of the table without label. |
label |
the (optional) label to be defined for this table. |
pcol |
the number of parallel columns. |
rownames |
logical, should the rownames be printed in the first row without column name? |
topcaption |
logical, should the captions be placed on top (default) of the table? |
index |
logical, should an index entry be generated? |
... |
additional arguments, currently ignored. |
Based on the data in object
, an object from which a Latex table
(in a longtable
environment) may be constructed (via
toLatex
) is generated.
An object of class tabtab
or dftab
for which
toLatex
methods are available.
toLatex
produces objects of class Latex
, a character
vector, essentially.
data("rearrests", package = "HSAUR3")
toLatex(HSAURtable(rearrests),
caption = "Rearrests of juvenile felons.",
label = "rearrests_tab")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.