blob: d2f69fb4ef2e6382bce1d28185ad068df6888c21 [file] [log] [blame]
Hao Zhud4f54982020-10-07 16:26:35 -04001% Generated by roxygen2: do not edit by hand
2% Please edit documentation in R/header_separate.R
3\name{header_separate}
4\alias{header_separate}
5\title{Separate table headers and add additional header rows based on grouping}
6\usage{
Kirill Müller3769e2e2022-05-26 20:07:52 +02007header_separate(kable_input, sep = "[^[:alnum:]]+", ...)
Hao Zhud4f54982020-10-07 16:26:35 -04008}
9\arguments{
10\item{kable_input}{Output of \code{knitr::kable()} with \code{format} specified}
11
12\item{sep}{A regular expression separator between groups. The default value
13is a regular expression that matches any sequence of non-alphanumeric values.}
14}
15\description{
16When you create a summary table for either model or basic
17summary stats in R, you usually end up having column names in the form of
18"a_mean", "a_sd", "b_mean" and "b_sd". This function streamlines the process
19of renaming these column names and adding extra header rows using
20\code{add_header_above}.
21}