
Format Table 1 into Publication-Grade Quarto Manuscript Syntax
Source:R/table1.R
table1_to_quarto.RdFormats Table 1 with KaTeX/LaTeX bracketed confidence intervals, superscript footnote references for LOINC lab codes, and multi-level header spans ready for direct manuscript inclusion.
Usage
table1_to_quarto(
table1_data,
output_path = NULL,
which_table = "table1",
caption = NULL,
label = NULL,
include_loinc_footnotes = TRUE,
loinc_map = NULL,
loinc_footnotes = NULL,
provenance_notes = NULL,
include_provenance_footnotes = TRUE,
...
)Arguments
- table1_data
Result list from
generate_table1()or adata.frame.- output_path
Optional file path to write output (.qmd / .md).
- which_table
Name of table to export (
"table1"or"table1b").- caption
Table caption (default:
"Baseline Demographic and Clinical Characteristics").- label
Quarto cross-reference label (default:
"tbl-table1").- include_loinc_footnotes
Logical; whether to generate superscript LOINC code footnotes (default
TRUE).- loinc_map
Optional named list of LOINC codes by variable name.
- loinc_footnotes
Optional named list or vector of LOINC codes or footnotes.
- provenance_notes
Optional named list mapping variable names to provenance metadata dictionaries.
- include_provenance_footnotes
Logical; whether to generate superscript provenance footnotes (default
TRUE).- ...
Additional arguments.