kable_stk_hdr: Stack columns in a table for clearer viewing

Description Usage Arguments

View source: R/main.R

Description

Stack columns in a table for clearer viewing

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
kable_stk_hdr(
  data,
  head_col,
  to_col,
  caption = NULL,
  indent = TRUE,
  hdr_prefix = "",
  hdr_suffix = "",
  tblOnly = FALSE
)

Arguments

data

dataframe

head_col

character value specifying the column name with the headers

to_col

character value specifying the column name to add the headers into

caption

table caption

indent

should the original values in the to_col be indented

hdr_prefix

character value that will prefix headers

hdr_suffix

character value that will suffix headers

tblOnly

boolean indicating if the table should be formatted for prining or returned as a data frame


Avery-Lisa/myReportRx documentation built on May 23, 2021, 2:30 a.m.