render {visR} | R Documentation |
Render a data.frame, risktable, or tableone object as a table
Description
Render a previously created data.frame, tibble or tableone object to html, rtf or latex
Usage
render(
data,
title = "",
datasource,
footnote = "",
output_format = "html",
engine = "gt",
download_format = c("copy", "csv", "excel")
)
Arguments
data |
Input data.frame or tibble to visualize |
title |
Specify the title as a text string to be displayed in the rendered table. Default is no title. |
datasource |
String specifying the data source underlying the data set. Default is no title. |
footnote |
String specifying additional information to be displayed as a footnote alongside the data source and specifications of statistical tests. |
output_format |
Type of output that is returned, can be "html" or "latex". Default is "html". |
engine |
If "html" is selected as |
download_format |
Options formats generated for downloading the data. Default is a list "c('copy', 'csv', 'excel')". |
Value
A table data structure with possible interactive functionality depending on the choice of the engine.