Description Usage Arguments Examples
Uses the presence of '(all)' to detect the prominence. The parameter allcount_to_level_translate allows the user to control how the count of '(all)' in the left header is translated into the header level
1 2 | auto_detect_body_title_level(tab, keyword = "(all)",
allcount_to_level_translate = NULL)
|
tab |
a tab object |
keyword |
The keyword to use to detect summarisation. Uses '(all)' by default because this is what reshape2::dcast uses |
allcount_to_level_translate |
A named vector that provides a lookup - by default c("0" = NA, "1" = 5, "2" = 4, "3" = 3, "4" = 2, "5" = 1), which says that e.g. allcount 1 results in title_5 etc |
1 2 3 4 | crosstab <- read.csv(system.file("extdata", "example_crosstab.csv", package="xltabr"))
tab <- initialise()
tab <- add_body(tab, crosstab, left_header_colnames = c("drive", "age"))
tab <- auto_detect_body_title_level(tab)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.