stack_table {tatoo}R Documentation

Stack Tables

Description

Stack tables on top of each other. This can be used to print several tables on one Excel sheet with as_workbook() or save_xlsx().

Usage

stack_table(..., spacing = 2L, meta = NULL)

stack_table_list(tables, spacing = 2L, meta = NULL)

Arguments

...

stack_table() only: Any number other Tatoo_table objects, or anything that can be coerced to a data.frame.

spacing

Number of lineskips between the tables when exporting to xlsx

meta

a tt_meta object (optional)

tables

stack_table_list() only: Same as (...) for stack_table, just that a list can be supplied instead of individual arguments.

Value

A Stacked_table: a list of Tatoo_tables with additional spacing attribute that controls the default spacing between the tables when it is exported.

See Also

Attribute setter: spacing<-

Other Tatoo tables: comp_table(), mash_table(), tag_table(), tatoo_table()

Examples


df1 <- iris[1:5, 3:5]
df2 <- iris[100:105, 3:5]

stack_table(df1, df2)

# ```````````````````````````````````````````
# `      Petal.Length Petal.Width Species
# `   1:          1.4         0.2  setosa
# `   2:          1.4         0.2  setosa
# `   3:          1.3         0.2  setosa
# `   4:          1.5         0.2  setosa
# `   5:          1.4         0.2  setosa
# `   ______________________________________
# `      Petal.Length Petal.Width    Species
# `   1:          4.1         1.3 versicolor
# `   2:          6.0         2.5  virginica
# `   3:          5.1         1.9  virginica
# `   4:          5.9         2.1  virginica
# `   5:          5.6         1.8  virginica
# `   6:          5.8         2.2  virginica
# `
# ```````````````````````````````````````````


[Package tatoo version 1.1.2 Index]