Description Usage Arguments Examples
View source: R/huxtableUtils.R
prepare a huxtable with cells merged according to grouped colums
1 | mergeCells(labelledDataFrame)
|
labelledDataFrame |
e.g. select(dataframe,"col 1 title"=col1) |
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.