| roff_table | R Documentation |
Returns troff for the tbl preprocessor, a centred, boxed table with a bold header and
numeric columns aligned, to be set when the document goes through groff -t
(which render_roff does). Make it the value of a chunk.
roff_table(x, caption = NULL, digits = getOption("digits"))
x |
A data frame or matrix. |
caption |
Optional caption, set in bold, centred above the table. |
digits |
Significant digits for numeric columns. |
Troff text marked to go into the document as is.
cat(roff_table(head(mtcars[, 1:3]), caption = "Three columns of mtcars"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.