Hao Zhu | d4f5498 | 2020-10-07 16:26:35 -0400 | [diff] [blame^] | 1 | % 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{ |
| 7 | header_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 |
| 13 | is a regular expression that matches any sequence of non-alphanumeric values.} |
| 14 | } |
| 15 | \description{ |
| 16 | When you create a summary table for either model or basic |
| 17 | summary 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 |
| 19 | of renaming these column names and adding extra header rows using |
| 20 | \code{add_header_above}. |
| 21 | } |