Learn R Programming

tatoo (version 1.1.2)

as_latex.Composite_table: Convert a Composite Table to Latex Code

Description

Convert a Composite Table to Latex Code

Usage

# S3 method for Composite_table
as_latex(x, id_vars = id_vars(x), ..., kable_options = default_kable_options())

Value

as_latex()returns a character scalar of Latex code

save_pdf() returns a the path to the saved file as character

scalar.

view_pdf() returns NULL (invisibly)

Arguments

x

a Tatoo_table, data.frame or a list of data.frames

id_vars

If id_vars is specified, the tables will be combined using merge() on the columns specified in id_vars, otherwise the tables will be combined with cbind().

...

comp_table() only: individual data.frames. A name can be provided for each data.frame that will be used by print() and as_workbook() to create multi-table headings.

kable_options

list. Options passed on to knitr::kable(). See default_kable_options() for details.

See Also

Other as_latex methods: as_latex.Mashed_table(), as_latex.Tagged_table(), as_latex.Tatoo_report(), as_latex.data.frame(), as_latex()