blob: 60a5d315956ce35d050bc3b7f09dd50a0b04756f [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{
7header_separate(kable_input, sep = "[^[:alnum:]]+")
8}
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}