powered by
Add a table to a chronicle report
add_table( report = "", table, table_title = NULL, title_level = 2, html_table_type = c("DT", "kable"), table_params = NULL, fig_width = NULL, fig_height = NULL )
Character string containing all the R Markdown chunks previously added. Default is '', an empty report.
data.frame to print on the report.
title of the table. Default is no title.
Level of the section title of this plot (ie, number of # on Rmarkdown syntax.)
Either print a knitr::kable table or a DT htmlwidget.
A named list of additional parameters to be passed to either knitr::kable() or DT::datatable(), depending on html_table_type
Width of the figures printed from this code.
Height of the figures printed from this code.
An R Markdown file as a character string, now containing a chunk for the specified table.
# NOT RUN { html_report <- add_table(table = iris, table_title = 'Iris measures', html_table_type = 'kable') cat(html_report) # }
Run the code above in your browser using DataLab