View source: R/longtable_head.R
longtable_head | R Documentation |
xtable
's add.to.row
when
tabular.environment = "longtable"
Format header information from an xtable for adding to the printed output at position 0.
longtable_head(
xtab,
add.to.caption = " (continued)",
footnote = "Continued on next page",
double.header = FALSE,
pos = 0
)
xtab |
An object of class |
add.to.caption |
Text to be added to all but the last captions, default is " (continued)". |
footnote |
Text to be added to the footnote of all but the last page, default is "Continued on next page". |
double.header |
Logical, does the table have a double header? |
pos |
position in table to insert the header commands, default is 0.
Use 1 if double header is |
A single character string
xtab <- xtable::xtable(iris, caption = "Iris Data")
xtable::print.xtable(xtab, tabular.environment = "longtable", floating = FALSE,
hline.after = c(-1,0),
add.to.row = longtable_head(xtab))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.