View source: R/simulation_tables.R
| render_reference_table | R Documentation |
Converts a data frame of pre-computed reference simulation results (e.g.,
digitized from a published LaTeX table) into a styled gt table. This
is useful for displaying published benchmark results alongside new
simulation output within vignettes or reports.
render_reference_table(
ref_df,
title = "Reference Simulation Results",
subtitle = NULL,
bold_threshold = 0.05,
subgroup_notation = c("harm", "benefit")
)
ref_df |
|
title |
Character. Table title. |
subtitle |
Character. Table subtitle. Default: |
bold_threshold |
Numeric. Values in |
subgroup_notation |
Character. |
A gt table object.
## Not run:
ref <- data.frame(
Scenario = "M1 Null: N=700",
Metric = "any(H)",
FS = 0.02,
FSlg = 0.03,
GRF = 0.25
)
render_reference_table(ref, title = "Reference Results")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.