FormatTableAsLatex | R Documentation |
Latex representation of a data.table with matrix and vectors in its cells
FormatTableAsLatex(x, argsXtable = list(), ...)
x |
a data.table |
argsXtable |
a list (empty list by default) passed to xtable... |
... |
additional arguments passed to print.xtable. |
a character string representing a parseable latex text.
dt <- data.table::data.table(
A = list(
matrix(c(2, 0, 1.2, 3), 2, 2),
matrix(c(2.1, 0, 1.2, 3.2, 1.3, 3.4), 3, 2)),
b = c(2.2, 3.1))
print(FormatTableAsLatex(dt))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.