Collects column-header rows, top-to-bottom, into a single object that
can be passed to rtftable(col_header = ...). Each argument is one
row; a row may be either:
Details
- a character vector
one label per data column (legacy form), or
- a list of
col_cell()objects for a row with single and/or spanning cells.
Examples
rtf_col_header(
list(col_cell(1, ""), col_cell(c(2, 5), "Treatment")),
list(col_cell(1, ""),
col_cell(c(2, 3), "Drug A"),
col_cell(c(4, 5), "Drug B")),
c("Item", "N", "Mean", "N", "Mean")
)
#> <rtf_col_header -- 3 rows>
#> [1] cells: @1, Treatment@2-5
#> [2] cells: @1, Drug A@2-3, Drug B@4-5
#> [3] labels: "Item", "N", "Mean", "N", "Mean"