Displays a list comprised of summarytools objects created with
lapply.
Usage
# S3 method for class 'list'
print(x, method = "pander", file = "",
append = FALSE, report.title = NA, table.classes = NA,
bootstrap.css = st_options('bootstrap.css'),
custom.css = st_options('custom.css'), silent = FALSE,
footnote = st_options('footnote'), collapse = 0,
escape.pipe = st_options('escape.pipe'), ...)Arguments
- x
A summarytools object, created by one of the four core functions (
freq,descr,ctable, ordfSummary).- method
Character. One of “pander”, “viewer”, “browser”, or “render”. Default value for the
print()method is “pander”; forview()/stview(), default is “viewer” if session is running in RStudio, “browser” otherwise. The main use for “render” is in R Markdown documents.- file
Character. File name to write output to. Defaults to “”.
- append
Logical. Append output to existing file (specified using the file argument).
FALSEby default.- report.title
Character. For html reports, this goes into the
<title>tag. When left toNA(default), the first line of the heading section is used (e.g.: “Data Frame Summary”).- table.classes
Character. Additional html classes to assign to output tables. Bootstrap css classes can be used. User-defined classes (see the custom.css argument) are also specified here. See details section.
NAby default.- bootstrap.css
Logical. When generating an html document, include the “includes/stylesheets/bootstrap.min.css"” file content inside a
<style type="text/css">tag in the document's<head>.TRUEby default. Can be set globally withst_options.- custom.css
Character. Path to a custom .css file. Classes defined in this must also appear in the
table.classesparameter in order to be applied to the table(s). Can be set globally withst_options.NAby default.- silent
Logical. Set to
TRUEto hide console messages (e.g.: ignored variables orNaNtoNAtransformations).FALSEby default.- footnote
Character. Text to display just after html output tables. The default value (“default”) produces a two-line footnote indicating the package's name and version, the R version, and the current date. Has no effect on ascii or markdown content. Can contain standard html tags. Set to
NAto omit. Can be set globally withst_options.- collapse
Numeric.
0by default. Set to1to makefreq()sections collapsible (when clicking on the variable name). Future versions might provide alternate collapsing options.- escape.pipe
Logical. Set to
TRUEwhenstyle="grid"andfileargument is supplied if the intent is to generate a text file that can be converted to other formats using Pandoc. Can be set globally withst_options.- ...
Additional arguments used to override attributes stored in the object, or to change formatting via
formatorpander. See Details.