View source: R/Stacked_table.R
stack_table | R Documentation |
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()
.
stack_table(..., spacing = 2L, meta = NULL)
stack_table_list(tables, spacing = 2L, meta = NULL)
... |
|
spacing |
Number of lineskips between the tables when exporting to xlsx |
meta |
a |
tables |
|
A Stacked_table: a list of Tatoo_tables
with additional
spacing
attribute that controls the default spacing between the tables
when it is exported.
Attribute setter: spacing<-
Other Tatoo tables:
comp_table()
,
mash_table()
,
tag_table()
,
tatoo_table()
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
# `
# ```````````````````````````````````````````
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.