html_list | R Documentation |
This function creates a HTML listing which can be written to a file or console
html_list(
dfrm,
vars = names(dfrm),
fill = "",
vargroup = NULL,
porder = TRUE,
uselabel = TRUE,
footnote = NULL,
title = "listing",
titlepr = NULL,
group = NULL,
xrepeat = FALSE,
tclass = "sample",
out = NULL,
rawout = paste0(out, ".rawhtml"),
...
)
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 format of the current listing/css was designed to look good in the browser and in a WORD
document (when html is opened in WORD). Additional colspans are added in the table header which might lead to additional space in case
a user defined css file is used.
The function returns a HTML file (or writes output to console)
# an example how vargroup can be used
grp <- c(rep("",3),rep("grouped variables",2))
## Not run:
data(Theoph)
html_list(Theoph,out=tempfile(fileext=".html"))
html_list(Theoph,out=tempfile(fileext=".html"),vargroup=grp)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.