I have a table based on the mtcars dataset. In column, I have both variables engine and transmissions; in the row I have the variable cylinder number. I would like to have, instead of 100, the number of cases per row or the number of cases for each number of cylinders
multiple banners tres important
library(expss)
data(mtcars)
mtcars %>%
tab_cells(cyl) %>%
tab_cols(vs,total(),am,total("u_cases"),vs,total()) %>%
tab_total_row_position("below") %>%
tab_total_statistic("u_rpct")%>%
tab_stat_rpct() %>%
tab_pivot()