c("col", "row") and "both" print total rows and total columns.
Set to "row" or "col" to print only one type.
Set to "no" to remove all totals.
name
The names of the totals, as a character vector of length one or two.
Use c("Total_row", "Total_column") to set different names for rows and cols.
totcol
"last" only prints a total column for the last factor column
variable. Set to "each" to print a total column for each column variable.
data
The original database used to calculate the tab : it is only useful
for mean columns (of numeric variables), in order to calculate the variances of
total rows, necessary to calculate confidence intervals with tab_ci.
Value
A tibble of class tab. Total rows can then be detected using
is_totrow, and total columns using is_totcol.