as_latex.Composite_table: Convert a Composite Table to Latex Code

View source: R/as_latex.R

as_latex.Composite_tableR Documentation

Convert a Composite Table to Latex Code

Description

Convert a Composite Table to Latex Code

Usage

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

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.

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)

See Also

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


tatoo documentation built on March 31, 2023, 8:16 p.m.