mergeCells: prepare a huxtable with cells merged according to grouped...

Description Usage Arguments Examples

View source: R/huxtableUtils.R

Description

prepare a huxtable with cells merged according to grouped colums

Usage

1
mergeCells(labelledDataFrame)

Arguments

labelledDataFrame

e.g. select(dataframe,"col 1 title"=col1)

Examples

1
2
3
4
setwd(tempdir())
mergeCells(iris %>% group_by(Species,Petal.Width) %>% summarise(count = n()))
mergeCells(mtcars %>% rownames_to_column() %>% group_by(gear,carb))
mtcars %>% rownames_to_column() %>% group_by(gear,carb) %>% mergeCells() %>% saveTable("cars")

terminological/standard-print-output documentation built on July 18, 2021, 9:29 a.m.