Description Usage Arguments Examples
Adds labels to LaTeX tables that have are stored as a vector (e.g. output from kable()
or stargazer()
which is stored by capture.output()
). Labels cannot be seen within the table,
but rather can be referenced within a rmarkdown document via \label{tab:your_label_here}
1 | table_label(latex_table, caption)
|
latex_table |
Table from |
caption |
1 2 3 4 5 6 | my_table_rough <- capture.output(stargazer(mtcars))
my_table <- table_label(my_table_rough, "demographics")
print_table(table)
# Within Markdown Document
`\label{tab:demographics}` # this will print as Table 1, and update depending on the order of the tables.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.