tab_totaltab {tabxplor} | R Documentation |
Add total table to a tab
Description
Add total table to a tab
Usage
tab_totaltab(
tabs,
totaltab = c("table", "line", "no"),
name = "Ensemble",
data = NULL
)
Arguments
tabs |
|
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 |
Value
A tibble
of class tab
. Rows belonging to the total table can then
be detected using is_tottab
.
Examples
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")
[Package tabxplor version 1.2.0 Index]