FormatTableAsLatex: Latex representation of a data.table with matrix and vectors...

View source: R/LatexTools.R

FormatTableAsLatexR Documentation

Latex representation of a data.table with matrix and vectors in its cells

Description

Latex representation of a data.table with matrix and vectors in its cells

Usage

FormatTableAsLatex(x, argsXtable = list(), ...)

Arguments

x

a data.table

argsXtable

a list (empty list by default) passed to xtable...

...

additional arguments passed to print.xtable.

Value

a character string representing a parseable latex text.

Examples

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))


venelin/PCMBase documentation built on March 14, 2024, 8:24 p.m.