auto_detect_left_headers: Uses the presence of '(all)' in the leftmost columns of data...

Description Usage Arguments Examples

Description

Populates tab$body$left_header_colnames automatically

Usage

1
auto_detect_left_headers(tab, keyword = "(all)")

Arguments

tab

a tab object

keyword

The keyword to use to detect summarisation. Uses '(all)' by default because this is what reshape2::dcast uses

Examples

1
2
3
4
crosstab <- read.csv(system.file("extdata", "example_crosstab.csv", package="xltabr"))
tab <- initialise()
tab <- add_body(tab, crosstab)
tab <- auto_detect_left_headers(tab)

moj-analytical-services/xltabr documentation built on May 9, 2019, 9:59 p.m.