header_separate: Separate table headers and add additional header rows based...

View source: R/header_separate.R

header_separateR Documentation

Separate table headers and add additional header rows based on grouping

Description

When you create a summary table for either model or basic summary stats in R, you usually end up having column names in the form of "a_mean", "a_sd", "b_mean" and "b_sd". This function streamlines the process of renaming these column names and adding extra header rows using add_header_above.

Usage

header_separate(kable_input, sep = "[^[:alnum:]]+", ...)

Arguments

kable_input

Output of knitr::kable() with format specified

sep

A regular expression separator between groups. The default value is a regular expression that matches any sequence of non-alphanumeric values.

...

Additional parameters passed to do.call.


kableExtra documentation built on June 22, 2024, 10:59 a.m.