powered by
Latex representation of a data.table with matrix and vectors in its cells
FormatTableAsLatex(x, argsXtable = list(), ...)
a character string representing a parseable latex text.
a data.table
a list (empty list by default) passed to xtable...
additional arguments passed to print.xtable.
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))
Run the code above in your browser using DataLab