ltx_list | R Documentation |
This function creates a latex listing which can be written to a file or console
ltx_list(
dfrm,
vars = names(dfrm),
fill = "",
vargroup = NULL,
porder = TRUE,
uselabel = TRUE,
footnote = "",
tablenote = "",
mancol = NULL,
size = "\\footnotesize",
title = "listing",
titlepr = NULL,
group = NULL,
xrepeat = FALSE,
hyper = TRUE,
out = NULL,
rawout = paste0(out, ".rawtex"),
convchar = TRUE,
tabenv = "longtable",
label = NULL,
flt = "h",
...
)
The vargroup argument should be provided in the following form:
c(rep("",4),rep("group1",3),rep("group2",4))
.
The function will place the text within the vector with the given length as first line in the table with a midrule below it.
an exception is made for empty strings.
The function returns a latex file (or writes output to console)
## Not run:
data(Theoph)
grp <- c(rep("",3),rep("grouped variables",2))
ltx_list(Theoph,out=tempfile(fileext=".tex"),vargroup=grp,
template=paste0(system.file(package="R3port"),"/listing.tex"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.