Nothing
This vignette introduces how to create multi level headers.
knitr::opts_chunk$set( collapse = TRUE, comment = "#>", eval = "dplyr" %in% rownames(installed.packages()) )
library(ftExtra)
ft <- iris[1:2, ] %>% flextable ft
The split_header()
function generates multi-level headers by separating original headers (row names) by delimiters.
ft %>% split_header()
The sep
argument defines delimiters by regular expression.
The default delimiters are .
and _
.
Let's see what happens when seop = "e"
ft %>% split_header(sep = "e")
The span_header()
function also generates multi-level headers.
Unlike the split_header()
function, the span_header()
function merges adjacent headers if they have same values.
ft %>% span_header()
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.