tab_totaltab | R Documentation |
tab
Add total table to a tab
tab_totaltab(
tabs,
totaltab = c("table", "line", "no"),
name = "Ensemble",
data = NULL
)
tabs |
A |
totaltab |
If there are subtables, corresponding to the levels of tab_vars,
|
name |
The name of the total table, as a single string. |
data |
The original database used to calculate the |
A tibble
of class tab
. Rows belonging to the total table can then
be detected using is_tottab
.
data <- dplyr::starwars %>%
tab_prepare(sex, hair_color, gender, other_if_less_than = 5,
na_drop_all = sex)
data %>%
tab_plain(sex, hair_color, gender) %>%
tab_totaltab("line")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.