stable_long | R Documentation |
Use this function to allow your table to span multiple pages, with a
"to be continued" statement at the bottom of each page. There are important
differences between this longtable
environment and the tabular
environment that is used to generate tables from stable()
. See the
details
section for more information.
stable_long(data, ...)
## S3 method for class 'data.frame'
stable_long(
data,
note_config = noteconf(type = "minipage"),
inspect = FALSE,
lt_cap_macro = "",
lt_cap_text = "",
lt_cap_short = "",
lt_cap_label = "",
lt_continue = "\\footnotesize{continued on next page}",
...
)
## S3 method for class 'stobject'
stable_long(data, ...)
## S3 method for class 'pmtable'
stable_long(data, ...)
data |
an object to render as a long table; this could be a |
... |
passed to |
note_config |
a |
inspect |
fixed to |
lt_cap_macro |
the name of a macro that will hold caption text; to not
lead with |
lt_cap_text |
full caption text, appearing where the table is rendered |
lt_cap_short |
short caption text, appearing in the list of tables |
lt_cap_label |
table label for use in latex document |
lt_continue |
longtable continuation message |
To create longtable
output, pmtables
first passes the data frame
through stable()
and then modifies the output to create a table in
longtable
environment. The ...
arguments to stable_long()
are passed
to stable()
and can be used to configure the table. One important difference
between tablular
and longtable
environments is that captions need to
get inserted inside the longtable
environment; this is why you see
several additional arguments for stable_long()
.
You may have to run pdflatex
on your longtable
more than once to get the
table to render properly; this is not unexpected behavior for longtable
.
If you have panels in your table, the default is to prevent page breaks
right after the panel title row using the \\*
command in the longtable
package. This shouldn't need to be changed by the user, but if needed this
can be suppressed by adding nopagebreak = FALSE
when calling as.panel()
or rowpanel()
.
A character vector with the TeX code for the table with class
attribute set to stable_long
and stable
.
stable_long(stdata())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.