table_shell | R Documentation |
A table shell is a rendering of the table which maintains the structure, but does not display the values, rather displaying the formatting instructions for each cell.
table_shell(
tt,
widths = NULL,
col_gap = 3,
hsep = default_hsep(),
tf_wrap = FALSE,
max_width = NULL
)
table_shell_str(
tt,
widths = NULL,
col_gap = 3,
hsep = default_hsep(),
tf_wrap = FALSE,
max_width = NULL
)
tt |
( |
widths |
( |
col_gap |
( |
hsep |
( |
tf_wrap |
( |
max_width |
( |
table_shell
returns NULL
, as the function is called for the side effect of printing the shell to the console.
table_shell_str
returns the string representing the table shell.
value_formats()
for a matrix of formats for each cell in a table.
library(dplyr)
iris2 <- iris %>%
group_by(Species) %>%
mutate(group = as.factor(rep_len(c("a", "b"), length.out = n()))) %>%
ungroup()
lyt <- basic_table() %>%
split_cols_by("Species") %>%
split_cols_by("group") %>%
analyze(c("Sepal.Length", "Petal.Width"), afun = list_wrap_x(summary), format = "xx.xx")
tbl <- build_table(lyt, iris2)
table_shell(tbl)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.