makeStandardTable | R Documentation |
Function that will return tables used in reports.
mst(
tab,
col_names = colnames(tab),
type = "pdf",
cap = "",
label = knitr::opts_current$get("label"),
digs = 0,
align = NULL,
fs = 8,
lsd = FALSE
)
tab |
Data frame or matrix representing the table. |
col_names |
Character vector with column names. Defaults
|
type |
Character string defining output, either "html" or "pdf". Default is "pdf". |
cap |
Character string with table caption. Empty string by default. |
label |
Character string defining the label in case the table needs to
be referenced elsewhere in the overall document. For instance, setting this
to 'my_table' the corresponding inline rmarkdown reference to use is
|
digs |
Integer number of digits to use. 0 by default. |
align |
Character vector specifying column alignment in the LaTeX way,
e.g. |
fs |
Integer providing the font size. Applies only for pdf output. Default value is 8. |
lsd |
Logical if table is to be scaled down. Applies only for pdf output. FALSE by default. |
mst()
creates RMarkdown code for creating standard tables.
Character string containing RMarkdown table code
mst(tab = mtcars[1:10, ])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.